Side navigation
Ticket #342: ajax.patch
File ajax.patch, 0.6 KB (added by mgibson@designlinks., November 07, 2006 05:06PM UTC)
New patch against rev 540
Index: ajax.js
===================================================================
--- ajax.js (revision 541)
+++ ajax.js (working copy)
@@ -701,6 +701,7 @@
success: fvoid,
error: fvoid,
dataType: null,
+ contentType: "application/x-www-form-urlencoded",
data: null,
url: null
}, s);
@@ -736,7 +737,7 @@
// Set the correct header, if data is being sent
if ( s.data )
- xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
+ xml.setRequestHeader("Content-Type", contentType);
// Set the If-Modified-Since header, if ifModified mode.
if ( s.ifModified )
Download in other formats:
Original Format
File ajax.patch, 0.6 KB (added by mgibson@designlinks., November 07, 2006 05:06PM UTC)
New patch against rev 540
Index: ajax.js
===================================================================
--- ajax.js (revision 541)
+++ ajax.js (working copy)
@@ -701,6 +701,7 @@
success: fvoid,
error: fvoid,
dataType: null,
+ contentType: "application/x-www-form-urlencoded",
data: null,
url: null
}, s);
@@ -736,7 +737,7 @@
// Set the correct header, if data is being sent
if ( s.data )
- xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
+ xml.setRequestHeader("Content-Type", contentType);
// Set the If-Modified-Since header, if ifModified mode.
if ( s.ifModified )