Skip to content
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

Allow clients to specify content type #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahjones
Copy link

@ahjones ahjones commented Jun 28, 2023

At the moment the signer always overrides the content type of the request to be application/json. There's no need for this, and it means that there's no way to override the header when necessary.

This change checks to see if the content type header is set, and if the header is set then it's left as-is.

At the moment the signer always overrides the content type of the
request to be `application/json`. There's no need for this, and it
means that there's no way to override the header when necessary.

This change checks to see if the content type header is set, and if
the header is set then it's left as-is.
ahjones added a commit to ahjones/cli that referenced this pull request Jun 28, 2023
Change the default content type to `application/json`. It was always
ignored anyway, but I've made another PR in fn_go that means that it
will be used: fnproject/fn_go#56

Once that PR is merged we should revendor `fn_go` with this PR.
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