Explorar el Código

remove setting Content-Type when body is FormData

chieveit hace 8 años
padre
commit
d9a25af83c
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      src/utils/request.js

+ 0 - 1
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,
       };
     }