[Python-checkins] cpython: added the Content-Length header. that fixes the weird
tarek.ziade
python-checkins at python.org
Sat May 21 23:59:35 CEST 2011
http://hg.python.org/cpython/rev/7ebf12f26aa2
changeset: 70264:7ebf12f26aa2
user: Tarek Ziade <tarek at ziade.org>
date: Sat May 21 23:59:09 2011 +0200
summary:
added the Content-Length header. that fixes the weird packaging.pypi.errors.HashDoesNotMatch errors
files:
Lib/packaging/tests/pypi_server.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/packaging/tests/pypi_server.py b/Lib/packaging/tests/pypi_server.py
--- a/Lib/packaging/tests/pypi_server.py
+++ b/Lib/packaging/tests/pypi_server.py
@@ -226,6 +226,7 @@
data = file.read().encode()
headers = [('Content-type', 'text/html')]
+ headers.append(('Content-Length', len(data)))
self.make_response(data, headers=headers)
except IOError:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list