Skip to content
Permalink
Browse files

Fixed spacing on the modified Ajax code.

  • Loading branch information
John Resig John Resig
John Resig authored and John Resig committed Nov 25, 2009
1 parent ef819c9 commit 0f6e9a8c69007ce7ebbb7c46637115a207d1a594
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/ajax.js
@@ -338,16 +338,16 @@ 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]);
}
// 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]);
}
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");

0 comments on commit 0f6e9a8

Please sign in to comment.
You can’t perform that action at this time.