Skip to content

Commit c479461

Browse files
authored
Merge pull request #13 from yaacov/add-host-header
Add an http 1.1 Host header
2 parents 1650b47 + a72c780 commit c479461

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hawkular/metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def _http(self, url, method, data=None):
161161
req = Request(url=url)
162162
req.add_header('Content-Type', 'application/json')
163163
req.add_header('Hawkular-Tenant', self.tenant_id)
164+
req.add_header('Host', self.host)
164165

165166
if self.token is not None:
166167
req.add_header('Authorization', 'Bearer {0}'.format(self.token))

0 commit comments

Comments
 (0)