Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from authy/solve_issue_10
Browse files Browse the repository at this point in the history
Try fix issue #10
  • Loading branch information
vargasx committed Sep 15, 2016
2 parents 6d6fef7 + 4721f9c commit f085687
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions authy/api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ def request(self, method, path, data={}, headers={}):
return requests.request(method, url, headers=headers, params=params, data=json.dumps(data))

def __default_headers(self):
platform_value = ""
try:
platform_value = platform.platform(True)
except:
platform_value = "unknown_platform"

return {
'User-Agent': "AuthyPython/{0} ({1}; Python {2})".format(
__version__,

This comment has been minimized.

Copy link
@ndenny

ndenny Jan 18, 2017

You're not using platform_value - please replace the platform.platform(True) call with your platform_value variable.

Expand Down

0 comments on commit f085687

Please sign in to comment.