From c728a1b47a584bbdf26ed745266af48cefb94ba5 Mon Sep 17 00:00:00 2001 From: maxkahan Date: Fri, 8 Sep 2023 13:18:42 +0100 Subject: [PATCH 1/3] fixing session return --- .gitignore | 2 +- opentok/opentok.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 54328e5..9b30cb9 100644 --- a/.gitignore +++ b/.gitignore @@ -42,7 +42,7 @@ coverage.xml docs/_build/ # Virtual env -venv/ +venv* env/ # Mac Desktop files diff --git a/opentok/opentok.py b/opentok/opentok.py index 61bdf65..47e6d2f 100644 --- a/opentok/opentok.py +++ b/opentok/opentok.py @@ -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, ) From 6deaf84d338394bca71fc46568f5688c86c91e1d Mon Sep 17 00:00:00 2001 From: maxkahan Date: Fri, 8 Sep 2023 13:28:06 +0100 Subject: [PATCH 2/3] update changelog --- CHANGES.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 34b6108..5c25929 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +# Release v3.8.1 +- Fixed an issue with the `opentok.create_session` method + # Release v3.8.0 - Added support for the [Captions API](https://tokbox.com/developer/guides/live-captions/) From b31dd76ca302125254f6c0c0b4e26d69014b2187 Mon Sep 17 00:00:00 2001 From: maxkahan Date: Fri, 8 Sep 2023 13:28:17 +0100 Subject: [PATCH 3/3] =?UTF-8?q?Bump=20version:=203.8.0=20=E2=86=92=203.8.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- opentok/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 7b9455b..019d65b 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.8.0 +current_version = 3.8.1 commit = True tag = False diff --git a/opentok/version.py b/opentok/version.py index c89f75e..d7871bc 100644 --- a/opentok/version.py +++ b/opentok/version.py @@ -1,3 +1,3 @@ # see: http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers -__version__ = "3.8.0" +__version__ = "3.8.1"