Commit 2057bc64 authored by Denis Bilenko's avatar Denis Bilenko

wsgi_test.py: pass Content-Length as a string

parent 439d2353
...@@ -226,12 +226,12 @@ class TestExplicitContentLength(TestHttpdBasic): ...@@ -226,12 +226,12 @@ class TestExplicitContentLength(TestHttpdBasic):
msg = 'hello world' msg = 'hello world'
start_response('200 OK', start_response('200 OK',
[('Content-Type', 'text/plain'), [('Content-Type', 'text/plain'),
('Content-Length', len(msg))]) ('Content-Length', str(len(msg)))])
else: else:
msg = 'not found' msg = 'not found'
start_response('404 Not Found', start_response('404 Not Found',
[('Content-Type', 'text/plain'), [('Content-Type', 'text/plain'),
('Content-Length', len(msg))]) ('Content-Length', str(len(msg)))])
return [msg] return [msg]
......
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