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.
1 parent 4f2a296 commit 2227101Copy full SHA for 2227101
src/doFetchArgs.ts
@@ -53,7 +53,7 @@ export default async function doFetchArgs<TData = any>(
53
54
const headers = ((): HeadersInit | null => {
55
const contentType = ((initialOptions.headers || {}) as any)['Content-Type']
56
- const shouldAddContentType = !!contentType || [HTTPMethod.POST, HTTPMethod.PUT].includes(method) && !(body instanceof FormData)
+ const shouldAddContentType = !!contentType || [HTTPMethod.POST, HTTPMethod.PUT, HTTPMethod.PATCH].includes(method) && !(body instanceof FormData)
57
const headers: any = { ...initialOptions.headers }
58
if (shouldAddContentType) {
59
// default content types http://bit.ly/2N2ovOZ
0 commit comments