Skip to content

Commit a72c780

Browse files
author
Yaacov Zamir
committed
Add an http 1.1 Host header
1 parent 1650b47 commit a72c780

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)