[patch] WSGI handler expects CONTENT_LENGTH to be always present
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
CONTENT_LENGTH may be absent if a POST request doesn't have a content at all (at least with lighttpd). This is BTW not so rare thing especially in ajax stuff: when calling XmlHttpRequest.send() without data for POST requests Firefox doesn't include nor data, neither Content-Length. May be others too.
Fix is trivial, patch follows.
Change History (9)
comment:1 Changed 10 years ago by
|Summary:||WSGI handle expects CONTENT_LENGTH to be always present → [patch] WSGI handler expects CONTENT_LENGTH to be always present|