diff options
author | ianb <devnull@localhost> | 2006-09-10 18:20:18 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-09-10 18:20:18 +0000 |
commit | 9e2c1c9bb14e9b6d56b9f0826f3d62f08fdce462 (patch) | |
tree | 7003bc3fa78666372172463c7f6bf2cd6e3e675e /paste/debug | |
parent | 8f428bc62e8a2715662fe2cb7c604015a4ecb9d2 (diff) | |
download | paste-9e2c1c9bb14e9b6d56b9f0826f3d62f08fdce462.tar.gz |
Set Content-length to a string value, not int
Diffstat (limited to 'paste/debug')
-rwxr-xr-x | paste/debug/debugapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/debug/debugapp.py b/paste/debug/debugapp.py index 7db39e9..15584aa 100755 --- a/paste/debug/debugapp.py +++ b/paste/debug/debugapp.py @@ -18,8 +18,8 @@ class SimpleApplication: """ def __call__(self, environ, start_response): body = "<html><body>simple</body></html>" - start_response("200 OK",[('Content-Type','text/html'), - ('Content-Length',len(body))]) + start_response("200 OK", [('Content-Type', 'text/html'), + ('Content-Length', str(len(body)))]) return [body] class SlowConsumer: |