diff options
| author | ianb <devnull@localhost> | 2006-11-27 01:09:33 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-11-27 01:09:33 +0000 |
| commit | d5e281ea75888f552330505574ffbffe7342e9be (patch) | |
| tree | 53d542d19222b041af6d5a53bc235577da926304 /paste/httpserver.py | |
| parent | fb4faa785e6cdee2e94a3c099fbb7d43e77bd743 (diff) | |
| download | paste-d5e281ea75888f552330505574ffbffe7342e9be.tar.gz | |
Change CONTENT_LENGTH's default to '0', not ''
Diffstat (limited to 'paste/httpserver.py')
| -rwxr-xr-x | paste/httpserver.py | 2 |
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 |
