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

supabase / supabase-swift / 31580890787
85%

Build:
DEFAULT BRANCH: main
Ran 12 Aug 2026 09:07AM UTC
Jobs 1
Files 102
Run time 1min
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

12 Aug 2026 08:59AM UTC coverage: 84.21% (-0.06%) from 84.272%
31580890787

push

github

web-flow
fix(storage): derive content type for signed URL uploads (#1158)

* fix(storage): derive content type for signed URL uploads

uploadToSignedURL fell back to defaultFileOptions when no options were
passed, and that constant carries contentType "text/plain;charset=UTF-8".
The fallback to the path extension could therefore never run, so a PNG or
JPEG uploaded through a signed URL was stored and served as text/plain.

upload() and update() already default to FileOptions(), whose contentType is
nil so the extension is used, and the deprecated uploadToSignedURL overloads
pass FileOptions() too. Use FileOptions() here as well. cacheControl and
upsert are identical between the two, so only contentType changes.

The two new tests capture the request body through StorageHTTPSession rather
than snapshotRequest, so they fail when the emitted content type is wrong.

* test(storage): move body-capturing helper beside makeSUT

* test(storage): fix Linux CI failure and stale snapshot in signed upload tests

The two new tests asserting extension-derived content type hardcoded
image/png and image/jpeg, which only holds where UniformTypeIdentifiers
is available; on Linux mimeType(forPathExtension:) falls back to
application/octet-stream. Also updates the uploadToSignedURLCleansPath
snapshot, which still expected the pre-fix Content-Length/Content-Type
values flagged by CodeRabbit.

---------

Co-authored-by: Guilherme Souza <guilherme@supabase.io>

1 of 1 new or added line in 1 file covered. (100.0%)

9 existing lines in 1 file now uncovered.

8773 of 10418 relevant lines covered (84.21%)

39.68 hits per line

Coverage Regressions

Lines Coverage ∆ File
9
91.19
-4.78% Sources/PostgREST/PostgrestBuilder.swift
Jobs
ID Job ID Ran Files Coverage
1 31580890787.1 12 Aug 2026 09:07AM UTC 102
84.21
GitHub Action Run
Source Files on build 31580890787
  • Tree
  • List 102
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31580890787
  • 1b6071c1 on github
  • Prev Build on main (#31580837832)
  • Next Build on main (#31581380419)
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