added the Content-Length header. that fixes the weird packaging.pypi.errors.HashDoesNotMatch errors

This commit is contained in:
Tarek Ziade 2011-05-21 23:59:09 +02:00
parent 99d4623850
commit 2c40f60c32
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ class PyPIRequestHandler(SimpleHTTPRequestHandler):
data = file.read().encode()
headers = [('Content-type', 'text/html')]
headers.append(('Content-Length', len(data)))
self.make_response(data, headers=headers)
except IOError: