Răsfoiți Sursa

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 an în urmă
părinte
comite
a16c1acb20
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 };