diff options
author | Jan Kneschke <jan@kneschke.de> | 2006-01-03 15:16:03 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2006-01-03 15:16:03 +0000 |
commit | 75c7ccf1553339cdc79a133789e56925a4b430e8 (patch) | |
tree | 48f391fbd4838a9bc8423b7735a5ba9acacf4469 | |
parent | d0ffb5a69b208ca498b540f30405b2ba88faa226 (diff) | |
download | lighttpd-git-75c7ccf1553339cdc79a133789e56925a4b430e8.tar.gz |
MSIE sends Content-Length: 0 for OPTIONS requests, tolerate that
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@911 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/request.c b/src/request.c index 5d561ee0..17e09dc1 100644 --- a/src/request.c +++ b/src/request.c @@ -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"); |