mirror of
https://github.com/foss42/apidash.git
synced 2025-07-09 12:22:32 +08:00
cleanup ContentType
This commit is contained in:
lib/codegen
@ -99,7 +99,7 @@ fetch(url, options)
|
||||
var m = {};
|
||||
for (var i in headers) {
|
||||
// fetch can automatically add the Content-Type header when FormData is passed as body
|
||||
if (i["name"] == "Content-Type" && requestModel.hasFormData) {
|
||||
if (i["name"] == kHeaderContentType && requestModel.hasFormData) {
|
||||
continue;
|
||||
}
|
||||
m[i["name"]] = i["value"];
|
||||
|
Reference in New Issue
Block a user