summaryrefslogtreecommitdiff
path: root/paste/httpserver.py
diff options
context:
space:
mode:
authorIan Bicking <ian@ianbicking.org>2006-11-27 01:09:33 +0000
committerIan Bicking <ian@ianbicking.org>2006-11-27 01:09:33 +0000
commit22d7ececaed362b215196cb9b6f04ddcbeae21be (patch)
tree53d542d19222b041af6d5a53bc235577da926304 /paste/httpserver.py
parentd8034b4f760daca75ddd4565c6be50ffd995afb0 (diff)
downloadpaste-git-22d7ececaed362b215196cb9b6f04ddcbeae21be.tar.gz
Change CONTENT_LENGTH's default to '0', not ''
Diffstat (limited to 'paste/httpserver.py')
-rwxr-xr-xpaste/httpserver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpserver.py b/paste/httpserver.py
index cd40e48..5da39d5 100755
--- a/paste/httpserver.py
+++ b/paste/httpserver.py
@@ -181,7 +181,7 @@ class WSGIHandlerMixin:
,'PATH_INFO': path
,'QUERY_STRING': query
,'CONTENT_TYPE': self.headers.get('Content-Type', '')
- ,'CONTENT_LENGTH': self.headers.get('Content-Length', '')
+ ,'CONTENT_LENGTH': self.headers.get('Content-Length', '0')
,'SERVER_NAME': server_name
,'SERVER_PORT': str(server_port)
,'SERVER_PROTOCOL': self.request_version