Skip to content

Commit 027bd46

Browse files
committed
Fixed issue with make_request.
1 parent d0ac3b0 commit 027bd46

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
========
33

4+
* 0.5.7 (January 23rd, 2017)
5+
* Fixed additional issues downloading PDFs in Python 3
6+
* Fixed issues caused by hard coded content-type for attachables.
7+
48
* 0.5.6 (January 18th, 2017)
59
* Fixed issue downloading PDFs in Python 3
610

quickbooks/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def make_request(self, request_type, url, request_body=None, content_type='appli
255255
'Connection': 'close'
256256
})
257257

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

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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def read(*parts):
1010
return fp.read()
1111

1212

13-
VERSION = (0, 5, 6)
13+
VERSION = (0, 5, 7)
1414
version = '.'.join(map(str, VERSION))
1515

1616
setup(

0 commit comments

Comments
 (0)