diff --git a/README.md b/README.md index 90657440..65b749be 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,13 @@ We recommend using the provided Docker container. A pre-build version is available at [docker hub](https://hub.docker.com/repository/docker/ghga/ghga-connector): ```bash -docker pull ghga/ghga-connector:1.1.1 +docker pull ghga/ghga-connector:1.1.2 ``` Or you can build the container yourself from the [`./Dockerfile`](./Dockerfile): ```bash # Execute in the repo's root dir: -docker build -t ghga/ghga-connector:1.1.1 . +docker build -t ghga/ghga-connector:1.1.2 . ``` For production-ready deployment, we recommend using Kubernetes, however, @@ -43,7 +43,7 @@ for simple use cases, you could execute the service using docker on a single server: ```bash # The entrypoint is preconfigured: -docker run -p 8080:8080 ghga/ghga-connector:1.1.1 --help +docker run -p 8080:8080 ghga/ghga-connector:1.1.2 --help ``` If you prefer not to use containers, you may install the service from source: diff --git a/pyproject.toml b/pyproject.toml index 4c1ee04e..55d400b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ghga_connector" -version = "1.1.1" +version = "1.1.2" description = "GHGA Connector - A CLI client application for interacting with the GHGA system." readme = "README.md" authors = [ diff --git a/src/ghga_connector/core/api_calls/download.py b/src/ghga_connector/core/api_calls/download.py index c0116516..7efbcbf1 100644 --- a/src/ghga_connector/core/api_calls/download.py +++ b/src/ghga_connector/core/api_calls/download.py @@ -21,7 +21,6 @@ from typing import Union import httpx -from requests.structures import CaseInsensitiveDict from ghga_connector.core import exceptions from ghga_connector.core.api_calls.work_package import WorkPackageAccessor @@ -55,13 +54,11 @@ def get_download_url( # build url and headers url = f"{work_package_accessor.dcs_api_url}/objects/{file_id}" - headers = CaseInsensitiveDict( - { - "Accept": "application/json", - "Authorization": f"Bearer {decrypted_token}", - "Content-Type": "application/json", - } - ) + headers = { + "Accept": "application/json", + "Authorization": f"Bearer {decrypted_token}", + "Content-Type": "application/json", + } # Make function call to get download url try: @@ -180,13 +177,11 @@ def get_file_header_envelope( # build url and headers url = f"{work_package_accessor.dcs_api_url}/objects/{file_id}/envelopes" - headers = CaseInsensitiveDict( - { - "Accept": "application/json", - "Authorization": f"Bearer {decrypted_token}", - "Content-Type": "application/json", - } - ) + headers = { + "Accept": "application/json", + "Authorization": f"Bearer {decrypted_token}", + "Content-Type": "application/json", + } # Make function call to get envelope try: