8000 feat: allow injection of httpx client by silentworks · Pull Request #591 · supabase/postgrest-py · GitHub
[go: up one dir, main page]

Skip to content

feat: allow injection of httpx client #591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 14, 2025
Merged
Prev Previous commit
Next Next commit
fix: update headers instead of replacing them
  • Loading branch information
silentworks committed May 12, 2025
commit 9c85aca0e74190d1a4fe8289f5e24e7cad0601b6
2 changes: 1 addition & 1 deletion postgrest/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_session(
) -> AsyncClient:
if http_client is not None:
http_client.base_url = base_url
http_client.headers = headers
http_client.headers.update({**headers})
return http_client

return AsyncClient(
Expand Down
2 changes: 1 addition & 1 deletion postgrest/_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_session(
) -> SyncClient:
if http_client is not None:
http_client.base_url = base_url
http_client.headers = headers
http_client.headers.update({**headers})
return http_client

return SyncClient(
Expand Down
0