1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/axios/lib/helpers/normalizeHeaderName.js

13 lines
357 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
'use strict';
var utils = require('../utils');
module.exports = function normalizeHeaderName(headers, normalizedName) {
utils.forEach(headers, function processHeader(value, name) {
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
headers[normalizedName] = value;
delete headers[name];
}
});
};