Skip to content

Commit

Permalink
Change default content type to JSON
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ahjones committed Jun 28, 2023
1 parent 6205e7d commit d6d95a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func Invoke(provider provider.Provider, ireq InvokeRequest) (*http.Response, err
if contentType != "" {
req.Header.Set("Content-Type", contentType)
} else {
req.Header.Set("Content-Type", "text/plain")
req.Header.Set("Content-Type", "application/json")
}

if len(env) > 0 {
Expand Down

0 comments on commit d6d95a3

Please sign in to comment.