We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d83ef05 commit 405906bCopy full SHA for 405906b
packages/openapi-fetch/src/index.js
@@ -84,10 +84,10 @@ export default function createClient(clientOptions) {
84
};
85
if (requestInit.body) {
86
requestInit.body = bodySerializer(requestInit.body);
87
- }
88
- // remove `Content-Type` if serialized body is FormData; browser will correctly set Content-Type & boundary expression
89
- if (requestInit.body instanceof FormData) {
90
- requestInit.headers.delete("Content-Type");
+ // remove `Content-Type` if serialized body is FormData; browser will correctly set Content-Type & boundary expression
+ if (requestInit.body instanceof FormData) {
+ requestInit.headers.delete("Content-Type");
+ }
91
}
92
93
let id;
0 commit comments