• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41673893468 / 20
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 04:27PM UTC
Files 17
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Nov 2026 04:24PM UTC coverage: 97.732%. Remained the same
41673893468.20

push

github

web-flow
fix(storage): let upload headers override the client's headers (#1942)

## What kind of change does this PR introduce?

Bug fix. Closes #1941.

## What is the current behavior?

`_request` merges the client's headers into the per-call headers last,
in a plain dict, so header names are compared case-sensitively. An
upload header named `Authorization` is sent next to the client's
`authorization`, and one named `authorization` is replaced by the
client's value.

## What is the new behavior?

`_request` now starts from the client's headers in an `httpx.Headers`
and sets each per-call header on top, so a per-call header replaces the
client's header of the same name in any casing. This applies to
`upload`, `update` and `upload_to_signed_url`, matching
supabase/supabase-js#2251. The other callers of `_request` only pass
headers the client does not send (`x-upsert`, `Content-Type`), so they
are unaffected.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Per-request headers now take precedence over client defaults for
uploads, updates, and signed-URL uploads. Client headers take precedence
over matching HTTP-client headers, while HTTP-client-only headers are
retained. Client defaults are still sent when no per-request headers are
supplied.
* **Tests**
* Added coverage for header precedence and retention across synchronous
and asynchronous clients, including upload, update, and signed-URL
upload requests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

1034 of 1058 relevant lines covered (97.73%)

0.98 hits per line

Source Files on job run-ubuntu-latest-3.14-realtime - 41673893468.20
  • Tree
  • List 17
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41673893468
  • 09855c3a on github
  • Prev Job for on main (#41667595084.23)
  • Next Job for on main (#41675489278.29)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc