fd22b0bf58
V2 (Laravel re-make)
13 lines
357 B
JavaScript
Vendored
13 lines
357 B
JavaScript
Vendored
'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];
|
|
}
|
|
});
|
|
};
|