Commit 23a63f20 authored by 's avatar

ZServer failed to recognize Content-Length headers of 0.

parent cc8787b0
...@@ -176,7 +176,7 @@ class zope_handler: ...@@ -176,7 +176,7 @@ class zope_handler:
def handle_request(self,request): def handle_request(self,request):
self.hits.increment() self.hits.increment()
size=get_header(CONTENT_LENGTH, request.header) size=get_header(CONTENT_LENGTH, request.header)
if size: if size and size != '0':
size=string.atoi(size) size=string.atoi(size)
if size > 1048576: if size > 1048576:
# write large upload data to a file # write large upload data to a file
......
...@@ -176,7 +176,7 @@ class zope_handler: ...@@ -176,7 +176,7 @@ class zope_handler:
def handle_request(self,request): def handle_request(self,request):
self.hits.increment() self.hits.increment()
size=get_header(CONTENT_LENGTH, request.header) size=get_header(CONTENT_LENGTH, request.header)
if size: if size and size != '0':
size=string.atoi(size) size=string.atoi(size)
if size > 1048576: if size > 1048576:
# write large upload data to a file # write large upload data to a file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment