From 483db61cadf8e4f3b293365e133d76748f4b8bcf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 02:07:26 +0000 Subject: [PATCH 1/2] fix(auth): prioritize first auth header --- src/getimg/_client.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/getimg/_client.py b/src/getimg/_client.py index ee3b133..bebb117 100644 --- a/src/getimg/_client.py +++ b/src/getimg/_client.py @@ -152,9 +152,11 @@ def qs(self) -> Querystring: @override def _auth_headers(self, security: SecurityOptions) -> dict[str, str]: - return { - **(self._bearer_auth if security.get("bearer_auth", False) else {}), - } + headers: dict[str, str] = {} + if security.get("bearer_auth", False): + for key, value in self._bearer_auth.items(): + headers.setdefault(key, value) + return headers @property def _bearer_auth(self) -> dict[str, str]: @@ -354,9 +356,11 @@ def qs(self) -> Querystring: @override def _auth_headers(self, security: SecurityOptions) -> dict[str, str]: - return { - **(self._bearer_auth if security.get("bearer_auth", False) else {}), - } + headers: dict[str, str] = {} + if security.get("bearer_auth", False): + for key, value in self._bearer_auth.items(): + headers.setdefault(key, value) + return headers @property def _bearer_auth(self) -> dict[str, str]: From ca9cbe6171268e4753f7eb3435831e78c2358a41 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 02:07:46 +0000 Subject: [PATCH 2/2] release: 0.2.2 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/getimg/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b06ba91..d66ca57 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.1" + ".": "0.2.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b992454..9dea7f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.2 (2026-06-18) + +Full Changelog: [v0.2.1...v0.2.2](https://github.com/getimg-ai/getimg-python/compare/v0.2.1...v0.2.2) + +### Bug Fixes + +* **auth:** prioritize first auth header ([483db61](https://github.com/getimg-ai/getimg-python/commit/483db61cadf8e4f3b293365e133d76748f4b8bcf)) + ## 0.2.1 (2026-05-13) Full Changelog: [v0.2.0...v0.2.1](https://github.com/getimg-ai/getimg-python/compare/v0.2.0...v0.2.1) diff --git a/pyproject.toml b/pyproject.toml index 8105d40..7f1fd2c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "getimg" -version = "0.2.1" +version = "0.2.2" description = "The official Python library for the getimg.ai API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/getimg/_version.py b/src/getimg/_version.py index e5bf8ce..812fb96 100644 --- a/src/getimg/_version.py +++ b/src/getimg/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "getimg" -__version__ = "0.2.1" # x-release-please-version +__version__ = "0.2.2" # x-release-please-version