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 84cff3f commit 6efb84bCopy full SHA for 6efb84b
livekit-api/livekit/api/twirp_client.py
@@ -115,8 +115,8 @@ def sync_request(
115
116
serialized_data = data.SerializeToString()
117
resp = requests.post(url, headers=headers, data=serialized_data)
118
- if resp.status == 200:
119
- return response_class.FromString(resp.data())
+ if resp.status_code == 200:
+ return response_class.FromString(resp.content)
120
else:
121
# when we have an error, Twirp always encode it in json
122
error_data = resp.json()
0 commit comments