Skip to content

fix(functions): functions overrides headers #160

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 1 commit into from
Nov 15, 2023

Conversation

grdsdev
Copy link
Collaborator

@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.

1 participant