Commit d16d9f67 authored by Jochen Kressin's avatar Jochen Kressin
Browse files

support for proxy auth

parent a88df9b5
import _ from 'lodash';
export default function (originalHeaders, headersToKeep) {
const normalizeHeader = function (header) {
if (!header) {
return '';
header = header.toString();
return header.trim().toLowerCase();
const headersToKeepNormalized =;
const originalHeadersNormalized = _.mapKeys(originalHeaders, function (headerValue, headerName) {
return normalizeHeader(headerName);
return _.pick(originalHeaders, headersToKeepNormalized);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment