Skip to content

Commit

Permalink
Fixed issue with make_request.
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Jan 23, 2017
1 parent d0ac3b0 commit 027bd46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
========

* 0.5.7 (January 23rd, 2017)
* Fixed additional issues downloading PDFs in Python 3
* Fixed issues caused by hard coded content-type for attachables.

* 0.5.6 (January 18th, 2017)
* Fixed issue downloading PDFs in Python 3

Expand Down
2 changes: 1 addition & 1 deletion quickbooks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def make_request(self, request_type, url, request_body=None, content_type='appli
'Connection': 'close'
})

binary_data = str(base64.b64encode(attachment.read()), 'utf-8')
binary_data = str(base64.b64encode(attachment.read()))

content_type = json.loads(request_body)['ContentType']

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def read(*parts):
return fp.read()


VERSION = (0, 5, 6)
VERSION = (0, 5, 7)
version = '.'.join(map(str, VERSION))

setup(
Expand Down

0 comments on commit 027bd46

Please sign in to comment.