8000 Added charset to the content-type · getbyrd/wc-api-python@73c1949 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73c1949

Browse files
Added charset to the content-type
1 parent 8a6450c commit 73c1949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

woocommerce/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __get_url(self, endpoint):
3333
""" Get URL for requests """
3434
url = self.url
3535

36-
if self.url.endswith('/') is False:
36+
if url.endswith('/') is False:
3737
url = "%s/" % url
3838

3939
return "%swc-api/%s/%s" % (url, self.version, endpoint)
@@ -56,7 +56,7 @@ def __request(self, method, endpoint, data):
5656
auth = None
5757
headers = {
5858
"user-agent": "WooCommerce API Client-Node.js/%s" % __version__,
59-
"content-type": "application/json",
59+
"content-type": "application/json;charset=utf-8",
6060
"accept": "application/json"
6161
}
6262

0 commit comments

Comments
 (0)
0