Skip to content

Commit

Permalink
fix(apiclient): fix usage of user agent header field
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Apr 1, 2019
1 parent 38a4f54 commit bbd9095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexonet/apiconnector/apiclient.py
Expand Up @@ -212,7 +212,7 @@ def request(self, cmd):
# TODO: 300s (to be sure to get an API response)
try:
req = Request(self.__socketURL, data, {
'User-Agent': 'python-sdk::' + self.getVersion()
'User-Agent': self.getUserAgent()
})
body = urlopen(req, timeout=self.__socketTimeout).read()
if (self.__debugMode):
Expand Down

0 comments on commit bbd9095

Please sign in to comment.