SOURCES: jquery-content-length-for-empty-post-ff.patch (NEW) - set content-...
glen
glen at pld-linux.org
Wed Dec 10 12:11:39 CET 2008
Author: glen Date: Wed Dec 10 11:11:39 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- set content-length for empty post for firefox bug it not sending out the header at all
---- Files affected:
SOURCES:
jquery-content-length-for-empty-post-ff.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/jquery-content-length-for-empty-post-ff.patch
diff -u /dev/null SOURCES/jquery-content-length-for-empty-post-ff.patch:1.1
--- /dev/null Wed Dec 10 12:11:39 2008
+++ SOURCES/jquery-content-length-for-empty-post-ff.patch Wed Dec 10 12:11:33 2008
@@ -0,0 +1,12 @@
+--- jquery-1.2.6/jquery.js~ 2008-12-10 13:08:16.180810515 +0200
++++ jquery-1.2.6/jquery.js 2008-12-10 13:08:16.157477013 +0200
+@@ -2670,6 +2670,9 @@
+ // Set the correct header, if data is being sent
+ if ( s.data )
+ xml.setRequestHeader("Content-Type", s.contentType);
++ else if (s.type.toLowerCase() == "post")
++ // this is for firefox bug, not sending Content-Length header for POST method without data
++ xml.setRequestHeader("Content-Length", 0);
+
+ // Set the If-Modified-Since header, if ifModified mode.
+ if ( s.ifModified )
================================================================
More information about the pld-cvs-commit
mailing list