Преглед изворни кода

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 година
родитељ
комит
a16c1acb20
1 измењених фајлова са 1 додато и 1 уклоњено
  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 };