Skip to content

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