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: Edward Lesmes <ehmaldonado@chromium.org>
changes/38/1227438/2
Andrii Shyshkalov 7 years ago committed by Commit Bot
parent dd2ce986ce
commit 86c823e88d

@ -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),

Loading…
Cancel
Save