Skip to content

Commit

Permalink
feat(javascript): use the text/plain content-type
Browse files Browse the repository at this point in the history
in algolia/react-instantsearch#3487 I discovered the text/pain content-type is also accepted by the engine, and also doesn't create a full CORS request
  • Loading branch information
Haroenv committed May 31, 2022
1 parent b7e8776 commit 185d145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/javascript/api-single.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function create{{capitalizedApiName}}(options: CreateClientOptions{{#hasR
requestsCache: options.requestsCache,
responsesCache: options.responsesCache,
baseHeaders: {
'content-type': 'application/x-www-form-urlencoded',
'content-type': 'text/plain',
...auth.headers(),
},
baseQueryParameters: auth.queryParameters(),
Expand Down

0 comments on commit 185d145

Please sign in to comment.