Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Explicitly set utf-8 encoding in neptune_client. #76

Merged
merged 1 commit into from Nov 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion neptune_client.py
Expand Up @@ -7,6 +7,6 @@ def __init__(self, sparql_endpoint):

def post(self, request_body, request_content_type):
response = requests.post(self.sparql_endpoint,
data=request_body,
data=request_body.encode('utf-8'),
headers={"Content-Type": request_content_type})
return response.text, response.status_code