Replace duplicate code in http.server with call to http.client.parse_headers().

This commit is contained in:
Jeremy Hylton 2009-03-27 17:14:18 +00:00
parent ef9f48e578
commit e6fdd04b37
2 changed files with 2 additions and 17 deletions

View file

@ -237,8 +237,6 @@ def parse_headers(fp):
to parse.
"""
# XXX: Copied from http.server.BaseHTTPRequestHandler.parse_request,
# maybe we can just call this function from there.
headers = []
while True:
line = fp.readline()