In common.inc :
'Content-Length' => 'Content-Length: '. strlen($data)
would not work with some servers because IIS, for exemple, won't accept a length parameter equal to 0. One suggestion can be checking if $data is NULL and if so not send 'Content-Length' altough RFC say that it SHOULD be sent.
Regards
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | common.inc.patch-cvs | 697 bytes | magico |
| #7 | common.inc.patch-4.7 | 697 bytes | magico |
| #6 | common.inc.patch-4.6 | 621 bytes | magico |
| #4 | common.inc.patches.tar.gz | 669 bytes | magico |
Comments
Comment #1
falcon9xr commentedI found this line in the 4.6.3 common.inc on line 295.
Comment #2
Centove commentedApache with mod_security enabled can trigger 403 errors with a content-length: 0 header sent. (for whatever reason)
This patch will only append the Content-Length header if we have content.
Comment #3
magico commentedMust create a patch for 4.6.9
Checked the current HEAD and the bug is there too.
Comment #4
magico commentedFollowing the advice by dlr and Centove here are the patches for CVS, 4.7 and 4.6
Anyway, this must be discussed further because these would be patches to solve both IIS and Apache bugs, as it seems.
Comment #5
drummPlease post each patch separately and unarchived.
Comment #6
magico commented4.6.9
Comment #7
magico commented4.7.3
Comment #8
magico commentedHEAD (2006-08-29)
Comment #9
killes@www.drop.org commentedI don't quite understand why we need this patch. Drupal has been reported to work on IIS just fine. I don't think we have business supporting broken servers.
Comment #10
chx commentedhttp://www.ngssoftware.com/papers/iisrconfig.pdf
http://www.mail-archive.com/squid-users@squid-cache.org/msg40113.html