We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a1b9d commit 979518eCopy full SHA for 979518e
overpy/__init__.py
@@ -151,10 +151,9 @@ def query(self, query):
151
else:
152
content_type = f.getheader("Content-Type")
153
154
- if ";" in content_type:
155
- content_type, charset = content_type.split(";")
156
-
157
- charset = charset.split("=")[1]
+ if ";" in content_type:
+ content_type, charset = content_type.split(";")
+ charset = charset.split("=")[1]
158
159
if content_type == "application/json":
160
return self.parse_json(response)
0 commit comments