1
0
Эх сурвалжийг харах

Fix incorrect Accept header on rest-form-api

The application expects a json response, it also doesn't make sense to expect the server to reply in "multipart/form-data" as that's not a valid response type.
Fabricio20 1 жил өмнө
parent
commit
a16c1acb20

+ 1 - 1
src/lib/rest-form-api/index.js

@@ -28,7 +28,7 @@
 const AUTHORIZATION_HEADER = "Authorization";
 const BEARER_PREFIX_AUTHORIZATION = "Bearer ";
 const ACCEPT_HEADER = "Accept";
-const CONTENT_TYPE = "multipart/form-data";
+const CONTENT_TYPE = "application/json";
 
 export { RestFormApi };