Skip to content

Commit

Permalink
Fix encoding bug, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
hughtopping committed Jul 2, 2018
1 parent f5581f7 commit 49a048b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# file GENERATED by distutils, do NOT edit
setup.cfg
setup.py
spektrixpython\__init__.py
spektrixpython\spektrixpython.py
spektrixpython/__init__.py
spektrixpython/spektrixpython.py
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
name = 'spektrixpython',
packages = ['spektrixpython'],
install_requires = ['requests'],
version = '0.3.0',
version = '0.4.0',
description = 'A python module for interacting with Spektrix API v3.',
author = 'Hugh Topping',
author_email = '[email protected]',
url = 'https://github.com/hughtopping/spektrixpython',
download_url = 'https://github.com/hughtopping/spektrixpython/tarball/0.3.0',
download_url = 'https://github.com/hughtopping/spektrixpython/tarball/0.4.0',
keywords = ['spektrix','api','v3'],
license='MIT',
classifiers = []
Expand Down
2 changes: 1 addition & 1 deletion spektrixpython/spektrixpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _generate_auth_headers(self, payload=None):
if self.method != 'GET':
body_string = dumps(payload).encode('utf-8')
body_string = md5(body_string).digest()
body_string = b64encode(body_string)
body_string = str(b64encode(body_string), 'utf-8')

string_to_sign = string_to_sign + '\n' + body_string

Expand Down

0 comments on commit 49a048b

Please sign in to comment.