|
@@ -47,7 +47,7 @@ export default function request(url, options) {
|
|
|
credentials: 'include',
|
|
credentials: 'include',
|
|
|
};
|
|
};
|
|
|
const newOptions = { ...defaultOptions, ...options };
|
|
const newOptions = { ...defaultOptions, ...options };
|
|
|
- if (newOptions.method === 'POST' || newOptions.method === 'PUT') {
|
|
|
|
|
|
|
+ if (newOptions.method === 'POST' || newOptions.method === 'PUT' || newOptions.method === 'DELETE') {
|
|
|
if (!(newOptions.body instanceof FormData)) {
|
|
if (!(newOptions.body instanceof FormData)) {
|
|
|
newOptions.headers = {
|
|
newOptions.headers = {
|
|
|
Accept: 'application/json',
|
|
Accept: 'application/json',
|