Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 9c85aca

Browse files
committed
fix: update headers instead of replacing them
1 parent e37b37c commit 9c85aca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postgrest/_async/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def create_session(
5555
) -> AsyncClient:
5656
if http_client is not None:
5757
http_client.base_url = base_url
58-
http_client.headers = headers
58+
http_client.headers.update({**headers})
5959
return http_client
6060

6161
return AsyncClient(

postgrest/_sync/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def create_session(
5555
) -> SyncClient:
5656
if http_client is not None:
5757
http_client.base_url = base_url
58-
http_client.headers = headers
58+
http_client.headers.update({**headers})
5959
return http_client
6060

6161
return SyncClient(

0 commit comments

Comments
 (0)