We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Content-Type
1 parent 44c94cb commit d96149fCopy full SHA for d96149f
src/core.ts
@@ -217,7 +217,7 @@ export abstract class APIClient {
217
protected defaultHeaders(opts: FinalRequestOptions): Headers {
218
return {
219
Accept: 'application/json',
220
- 'Content-Type': 'application/json',
+ ...(['head', 'get'].includes(opts.method) ? {} : { 'Content-Type': 'application/json' }),
221
'User-Agent': this.getUserAgent(),
222
...getPlatformHeaders(),
223
...this.authHeaders(opts),
0 commit comments