summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2006-01-03 15:16:03 +0000
committerJan Kneschke <jan@kneschke.de>2006-01-03 15:16:03 +0000
commit75c7ccf1553339cdc79a133789e56925a4b430e8 (patch)
tree48f391fbd4838a9bc8423b7735a5ba9acacf4469
parentd0ffb5a69b208ca498b540f30405b2ba88faa226 (diff)
downloadlighttpd-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.c2
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");