Skip to content

Commit

Permalink
include agent version in http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
vfuse authored Apr 21, 2017
1 parent 8874cd3 commit a7e9048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixstatsagent/nixstatsagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _data(self):
clean = True
else:
connection = httplib.HTTPSConnection(self.config.get('data', 'api_host'))
connection.request('PUT', self.config.get('data', 'api_path'),
connection.request('PUT', '%s?version=%s' % (self.config.get('data', 'api_path'), __version__),
bz2.compress(str(json.dumps(collection)) + "\n"),
headers=headers)
response = connection.getresponse()
Expand Down

0 comments on commit a7e9048

Please sign in to comment.