I am trying to change the connection header with the following code without success
jQuery.ajax({
url: URL,
async: boolVariable,
beforeSend: function(xhr)
{
xhr.setRequestHeader("Connection", "close");
}
})
Request headers through Firebug show:
Connection keep-alive
X-Requested-With XMLHttpRequest
Any odd errors / issues setting this particular header? Or is there something I'm doing wrong?
source
share