1
0
mirror of https://github.com/foss42/apidash.git synced 2025-07-09 12:22:32 +08:00

cleanup ContentType

This commit is contained in:
Ankit Mahato
2024-04-06 13:42:35 +05:30
parent 90eed294e7
commit 631c2e26d3
6 changed files with 8 additions and 8 deletions

@ -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"];