Fixed spacing on the modified Ajax code.
This commit is contained in:
parent
ef819c91b9
commit
0f6e9a8c69
1 changed files with 9 additions and 9 deletions
18
src/ajax.js
18
src/ajax.js
|
@ -338,17 +338,17 @@ jQuery.extend({
|
|||
xhr.setRequestHeader("Content-Type", s.contentType);
|
||||
}
|
||||
|
||||
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
||||
if ( s.ifModified ) {
|
||||
if ( jQuery.lastModified[s.url] ) {
|
||||
xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]);
|
||||
}
|
||||
|
||||
if ( jQuery.etag[s.url] ) {
|
||||
xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]);
|
||||
}
|
||||
// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
|
||||
if ( s.ifModified ) {
|
||||
if ( jQuery.lastModified[s.url] ) {
|
||||
xhr.setRequestHeader("If-Modified-Since", jQuery.lastModified[s.url]);
|
||||
}
|
||||
|
||||
if ( jQuery.etag[s.url] ) {
|
||||
xhr.setRequestHeader("If-None-Match", jQuery.etag[s.url]);
|
||||
}
|
||||
}
|
||||
|
||||
// Set header so the called script knows that it's an XMLHttpRequest
|
||||
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
||||
|
||||
|
|
Loading…
Reference in a new issue