mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix for #1132
This commit is contained in:
parent
2fac5e7949
commit
f63242f068
@ -637,10 +637,6 @@ jQuery.extend({
|
|||||||
// Set header so the called script knows that it's an XMLHttpRequest
|
// Set header so the called script knows that it's an XMLHttpRequest
|
||||||
xml.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
xml.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
||||||
|
|
||||||
// Make sure the browser sends the right content length
|
|
||||||
if ( xml.overrideMimeType )
|
|
||||||
xml.setRequestHeader("Connection", "close");
|
|
||||||
|
|
||||||
// Allow custom headers/mimetypes
|
// Allow custom headers/mimetypes
|
||||||
if( s.beforeSend )
|
if( s.beforeSend )
|
||||||
s.beforeSend(xml);
|
s.beforeSend(xml);
|
||||||
|
Loading…
Reference in New Issue
Block a user