Skip to content

Conversation

mertaksoy
Copy link

The response of get call looks like this:
{"key": "value}'

As you can see there is an apostrophe at the end. This comes because of the wrong conversion of byte to string.
b'HTTP/1.1 200 OK\r\n ............ {"key": "value}'

after a lot of splits the apostrophe was forgotten.

This PR extracts data from the upstream without converting it to string.

After the response here, we could followings:

Parsing to string res = str(httpRes, 'utf-8') and then converting it to json json.loads(res)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant