Ticket #4044 (closed bug: invalid)
$.ajax POST in Firefox fails with a null data parameter
|Reported by:||garrett||Owned by:||garrett|
Firefox has a bug where it does not send a Content-Length of 0 in a post when the post's body is omitted. Ordinarily, this works well with popular webservers... however, Squid (and possibly other proxies) complain and refuse to actually post.
Simply setting a Content-Length does not solve this issue; Firefox does not transmit custom Content-Length headers. The solution is to send an empty string instead of null. This makes Firefox send a Content-Length, and as a result, Squid is happy.
I am attaching patches for both jQuery 1.2.6 and 1.3.1 which fix this issue.
- Summary changed from sending XHR posts with null bodies through a proxy (such as Squid) does not work in Firefox to $.ajax POST in Firefox fails with a null data parameter
- Owner set to garrett
- Status changed from new to pending
- Status changed from pending to closed
- Resolution set to invalid