[Pypi-checkins] r877 - trunk/pypi
martin.von.loewis
python-checkins at python.org
Mon Nov 22 19:45:32 CET 2010
Author: martin.von.loewis
Date: Mon Nov 22 19:45:32 2010
New Revision: 877
Modified:
trunk/pypi/webui.py
Log:
Send content-length in simple requests.
Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py (original)
+++ trunk/pypi/webui.py Mon Nov 22 19:45:32 2010
@@ -626,6 +626,7 @@
html = ''.join(html)
self.handler.send_response(200, 'OK')
self.handler.set_content_type('text/html; charset=utf-8')
+ self.handler.send_header('Content-Length', str(len(html)))
self.handler.end_headers()
self.wfile.write(html)
return
@@ -638,6 +639,7 @@
html = self.simple_body(path)
self.handler.send_response(200, 'OK')
self.handler.set_content_type('text/html; charset=utf-8')
+ self.handler.send_header('Content-Length', str(len(html)))
self.handler.end_headers()
self.wfile.write(html)
return
More information about the Pypi-checkins
mailing list