diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-03-27 17:14:18 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2009-03-27 17:14:18 (GMT) |
commit | e6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3 (patch) | |
tree | e7291b29d8f1395eea497def307bcea58529e9a4 /Lib/http/client.py | |
parent | ef9f48e578a14c91fb101a4fbe73e5c3d400dcbf (diff) | |
download | cpython-e6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3.zip cpython-e6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3.tar.gz cpython-e6fdd04b37ff4a49b36cb2d1f0963b4062e8ccb3.tar.bz2 |
Replace duplicate code in http.server with call to http.client.parse_headers().
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r-- | Lib/http/client.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 0477ddd..1fe010c 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -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() |