1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

Actually use the new http_headers now available in the config.

This commit is contained in:
Susanne Oberhauser 2008-08-20 14:18:06 +00:00
parent e1d9c67f1c
commit 572ed13aba

View File

@ -1433,9 +1433,10 @@ def http_request(method, url, headers={}, data=None, file=None):
req = urllib2.Request(url) req = urllib2.Request(url)
#TODO: api_host_options=conf.get_apiurl_api_host_options(url)
#for header, value in [conf.config['api_host_options']['']['http_headers'].split]:
# req.add_header(header, value) for header, value in api_host_options['http_headers']:
req.add_header(header, value)
req.get_method = lambda: method req.get_method = lambda: method