diff --git a/src/doFetchArgs.ts b/src/doFetchArgs.ts index 02c08bf1..3f022235 100644 --- a/src/doFetchArgs.ts +++ b/src/doFetchArgs.ts @@ -53,7 +53,7 @@ export default async function doFetchArgs( const headers = ((): HeadersInit | null => { const contentType = ((initialOptions.headers || {}) as any)['Content-Type'] - 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) const headers: any = { ...initialOptions.headers } if (shouldAddContentType) { // default content types http://bit.ly/2N2ovOZ