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

supabase / supabase-flutter / 28380795187
86%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 02:49PM UTC
Jobs 0
Files 0
Run time –
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

pending completion
  cancel
28380795187

push

github

web-flow
fix(functions_client): use case-insensitive check for Content-Type header in invoke() (#1486)

## Description

Closes #1487

Per RFC 7230, HTTP header names are case-insensitive. Previously,
`FunctionsClient.invoke()` checked whether a `Content-Type` header was
provided using exact string match:
`!headers.containsKey("Content-Type")`.

If a caller passed a custom content-type header with lowercase or mixed
casing (such as `headers: {'content-type': 'application/custom+json'}`),
the check failed to detect it. Consequently, the default content-type
for the body type was assigned to `finalHeaders['Content-Type']`,
overwriting the caller's custom header when headers were set on the
request.

## Fix

Switched the check to a case-insensitive lookup over `finalHeaders.keys`
before setting default body content types.

## Test Plan

Added a unit test in
`packages/functions_client/test/functions_dart_test.dart` verifying that
passing `headers: {'content-type': 'application/custom+json'}` correctly
overrides default headers. All 37 tests in the package pass.

---------

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
Source Files on build 28380795187
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #28380795187
  • b98536a3 on github
  • Prev Build on main (#28360025318)
  • Next Build on main (#28390347724)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc