Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make headers configurable

  • Loading branch information...
commit fbceaaebe9264ce8426992c8308de8f42001e64e 1 parent 0a90eb2
@heroldus heroldus authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/python/yum_repo_server/test/integrationTestHelper.py
View
4 src/main/python/yum_repo_server/test/integrationTestHelper.py
@@ -5,10 +5,10 @@ def __init__(self, host, port):
self.host = host
self.port = port
- def do_http_get(self, extPath):
+ def do_http_get(self, extPath, headers={}):
try:
httpServ = httplib.HTTPConnection(self.host, self.port)
- httpServ.request('GET', extPath)
+ httpServ.request('GET', extPath, headers=headers)
response = httpServ.getresponse()
return response
except httplib.HTTPException:
Please sign in to comment.
Something went wrong with that request. Please try again.