]> source.dussan.org Git - jquery.git/commitdiff
Fixed spacing on the modified Ajax code.
authorJohn Resig <jeresig@Archimedes.local>
Wed, 25 Nov 2009 18:24:24 +0000 (13:24 -0500)
committerJohn Resig <jeresig@Archimedes.local>
Wed, 25 Nov 2009 18:24:24 +0000 (13:24 -0500)
src/ajax.js

index 697365a2ff232bb94fa79654e7ea12f5ba5e055f..3416dd66d145e7c0ed56eaa7304adc710e1cafed 100644 (file)
@@ -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");