Skip to content

Commit aa7c45e

Browse files
Version Bump v1.1.2
1 parent 9818bbd commit aa7c45e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ target/
6464
.env
6565
venv/
6666
.python-version
67-
cleanup.sh
67+
cleanup.sh
68+
*_example.py

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [1.1.2] - 2016-02-29
6+
### Fixed
7+
- Fixed TypeError in Python 3+ for data encoding
8+
59
## [1.1.1] - 2016-02-25
610
### Updated
711
- Tests no longer require a mock server [#5](https://github.com/sendgrid/python-http-client/pull/5)

python_http_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def get_version(*args, **kwargs):
144144
def http_request(*args, **kwargs):
145145
if 'request_headers' in kwargs:
146146
self._set_headers(kwargs['request_headers'])
147-
data = json.dumps(kwargs['request_body'])\
147+
data = json.dumps(kwargs['request_body']).encode('utf-8')\
148148
if 'request_body' in kwargs else None
149149
params = kwargs['query_params']\
150150
if 'query_params' in kwargs else None

0 commit comments

Comments
 (0)