mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Replace duplicate code in http.server with call to http.client.parse_headers().
This commit is contained in:
parent
ef9f48e578
commit
e6fdd04b37
2 changed files with 2 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue