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 488c92c commit 4104dc3Copy full SHA for 4104dc3
src/core.ts
@@ -231,7 +231,7 @@ export abstract class APIClient {
231
protected defaultHeaders(opts: FinalRequestOptions): Headers {
232
return {
233
Accept: 'application/json',
234
- 'Content-Type': 'application/json',
+ ...(['head', 'get'].includes(opts.method) ? {} : { 'Content-Type': 'application/json' }),
235
'User-Agent': this.getUserAgent(),
236
...getPlatformHeaders(),
237
...this.authHeaders(opts),
0 commit comments