Skip to content

Commit baafe6f

Browse files
committed
fix: Support 202 response on captions
1 parent fbdb9bb commit baafe6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opentok/opentok.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,8 +2094,11 @@ def start_captions(
20942094
timeout=self.timeout,
20952095
)
20962096

2097+
# Keeping backwards compat just in case
20972098
if response and response.status_code == 200:
20982099
return Captions(response.json())
2100+
if response and response.status_code == 202:
2101+
return Captions(response.json())
20992102
elif response.status_code == 400:
21002103
"""
21012104
The HTTP response has a 400 status code in the following cases:

0 commit comments

Comments
 (0)