Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.1"
".": "0.2.2"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
16 changes: 10 additions & 6 deletions src/getimg/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion src/getimg/_version.py
Original file line number Diff line number Diff line change
@@ -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
Loading