Explorar o código

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 hai 1 ano
pai
achega
a16c1acb20
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/rest-form-api/index.js

+ 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 };