Skip to content

Commit 39aefed

Browse files
committed
fix create_session
1 parent 0043355 commit 39aefed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ coverage.xml
4242
docs/_build/
4343

4444
# Virtual env
45-
venv/
45+
venv*
4646
env/
4747

4848
# Mac Desktop files

opentok/opentok.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,13 @@ def create_session(
467467
"POST to %r with params %r, headers %r, proxies %r",
468468
self.endpoints.session_url(),
469469
options,
470-
{**self.get_headers(), "Accept": "application/json"},
470+
self.get_headers(),
471471
self.proxies,
472472
)
473473
response = requests.post(
474474
self.endpoints.get_session_url(),
475475
data=options,
476-
headers={**self.get_headers(), "Accept": "application/json"},
476+
headers=self.get_headers(),
477477
proxies=self.proxies,
478478
timeout=self.timeout,
479479
)

0 commit comments

Comments
 (0)