From d9a25af83c175ac0cf6fb242b91fc1767d766e58 Mon Sep 17 00:00:00 2001 From: chieveit Date: Sun, 8 Apr 2018 17:17:51 +0800 Subject: [PATCH] remove setting Content-Type when body is FormData --- src/utils/request.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/request.js b/src/utils/request.js index 09fdf7fb..591da964 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -59,7 +59,6 @@ export default function request(url, options) { // newOptions.body is FormData newOptions.headers = { Accept: 'application/json', - 'Content-Type': 'multipart/form-data', ...newOptions.headers, }; } -- GitLab