Commit 86c823e8 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by Commit Bot

gerrit_util: document hack.

R=ajp@chromium.org

Bug: 881860
Change-Id: I2608132730cf907ea5bb86476490eafc37e24275
Reviewed-on: https://chromium-review.googlesource.com/1227438
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
parent dd2ce986
......@@ -361,6 +361,8 @@ def CreateHttpConn(host, path, reqtype='GET', headers=None, body=None):
if body:
LOGGER.debug(body)
conn = GetConnectionObject()
# HACK: httplib.Http has no such attribute; we store req_host here for later
# use in ReadHttpResponse.
conn.req_host = host
conn.req_params = {
'uri': urlparse.urljoin('%s://%s' % (GERRIT_PROTOCOL, host), url),
......
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