Skip to content

Commit 7a2cf9e

Browse files
author
John Miller
committed
Encode to utf8 before sending request
1 parent 3ab9745 commit 7a2cf9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import subprocess
55

66
setup(name="stitchclient",
7-
version="0.4.3",
7+
version="0.4.4",
88
description="A Stitch API client for Python",
99
author="Stitch",
1010
author_email="[email protected]",

stitchclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _stitch_request(self, body):
126126

127127
def _send_batch(self, batch):
128128
logger.debug("Sending batch of %s entries", len(batch))
129-
body = self._serialize_entries(batch)
129+
body = self._serialize_entries(batch).encode('utf8')
130130
response = self._stitch_request(body)
131131

132132
if response.status_code < 300:

0 commit comments

Comments
 (0)