diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-10-30 01:52:20 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-10-30 01:52:20 +0300 |
commit | 2518bf0e8457d8d945f40cc6ff1a74fc094d6999 (patch) | |
tree | ed7acfc6da9ba02d24d85b382a658bad77460a9d /src | |
parent | 3cf7eb21ec2e858aa467c9fc087fec8e8c700b6a (diff) |
fix api client
Diffstat (limited to 'src')
-rw-r--r-- | src/home/api/web_api_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/api/web_api_client.py b/src/home/api/web_api_client.py index 299bb6e..6f8ff27 100644 --- a/src/home/api/web_api_client.py +++ b/src/home/api/web_api_client.py @@ -164,7 +164,7 @@ class WebAPIClient: timeout=self.timeout, **kwargs) - if r.headers['content-type'] != 'application/json': + if not r.headers['content-type'].startswith('application/json'): raise ApiResponseError(r.status_code, 'TypeError', 'content-type is not application/json') data = json.loads(r.text) |