MSIE sends Content-Length: 0 for OPTIONS requests, tolerate that

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@911 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Jan Kneschke 18 years ago
parent ab35f0e383
commit 28db0418f2

@ -974,7 +974,7 @@ int http_request_parse(server *srv, connection *con) {
case HTTP_METHOD_HEAD:
case HTTP_METHOD_OPTIONS:
/* content-length is forbidden for those */
if (con_length_set) {
if (con_length_set && con->request.content_length != 0) {
/* content-length is missing */
log_error_write(srv, __FILE__, __LINE__, "s",
"GET/HEAD/OPTIONS with content-length -> 400");

Loading…
Cancel
Save