Commit f6b444ed authored by Jeremy Hylton's avatar Jeremy Hylton

Add comment explaining try/except for endheaders().

parent 828023b6
......@@ -817,6 +817,8 @@ class AbstractHTTPHandler(BaseHandler):
h.putheader(*args)
for k, v in req.headers.items():
h.putheader(k, v)
# httplib will attempt to connect() here. be prepared
# to convert a socket error to a URLError.
try:
h.endheaders()
except socket.error, err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment