Skip to content

Commit

Permalink
fix create_session
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkahan committed Sep 8, 2023
1 parent 0043355 commit 39aefed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ coverage.xml
docs/_build/

# Virtual env
venv/
venv*
env/

# Mac Desktop files
Expand Down
4 changes: 2 additions & 2 deletions opentok/opentok.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,13 @@ def create_session(
"POST to %r with params %r, headers %r, proxies %r",
self.endpoints.session_url(),
options,
{**self.get_headers(), "Accept": "application/json"},
self.get_headers(),
self.proxies,
)
response = requests.post(
self.endpoints.get_session_url(),
data=options,
headers={**self.get_headers(), "Accept": "application/json"},
headers=self.get_headers(),
proxies=self.proxies,
timeout=self.timeout,
)
Expand Down

0 comments on commit 39aefed

Please sign in to comment.