Skip to content

Commit 49a048b

Browse files
committed
Fix encoding bug, bump version
1 parent f5581f7 commit 49a048b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

MANIFEST

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# file GENERATED by distutils, do NOT edit
22
setup.cfg
33
setup.py
4-
spektrixpython\__init__.py
5-
spektrixpython\spektrixpython.py
4+
spektrixpython/__init__.py
5+
spektrixpython/spektrixpython.py

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
name = 'spektrixpython',
44
packages = ['spektrixpython'],
55
install_requires = ['requests'],
6-
version = '0.3.0',
6+
version = '0.4.0',
77
description = 'A python module for interacting with Spektrix API v3.',
88
author = 'Hugh Topping',
99
author_email = 'hugh@hugh.io',
1010
url = 'https://github.com/hughtopping/spektrixpython',
11-
download_url = 'https://github.com/hughtopping/spektrixpython/tarball/0.3.0',
11+
download_url = 'https://github.com/hughtopping/spektrixpython/tarball/0.4.0',
1212
keywords = ['spektrix','api','v3'],
1313
license='MIT',
1414
classifiers = []

spektrixpython/spektrixpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _generate_auth_headers(self, payload=None):
5555
if self.method != 'GET':
5656
body_string = dumps(payload).encode('utf-8')
5757
body_string = md5(body_string).digest()
58-
body_string = b64encode(body_string)
58+
body_string = str(b64encode(body_string), 'utf-8')
5959

6060
string_to_sign = string_to_sign + '\n' + body_string
6161

0 commit comments

Comments
 (0)