Skip to content

Conversation

@grdsdev
Copy link
Contributor

@grdsdev grdsdev commented Nov 15, 2023

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

FunctionInvokeOptions overrides the specified Content-Type header value to application/octet-stream when body is of type Data.

What is the new behavior?

If a custom content-type is passed to the initializer, keep it.

Additional context

Same fix as supabase-community/functions-swift#6, but in monorepo

@grdsdev grdsdev enabled auto-merge (squash) November 15, 2023 08:29
@grdsdev grdsdev merged commit e8ba6d1 into main Nov 15, 2023
@grdsdev grdsdev deleted the fix/functions-overiding-content-type branch November 15, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants