MCPcopy
hub / github.com/axios/axios / stripMatchingHeaders

Function stripMatchingHeaders

lib/adapters/http.js:226–236  ·  view source on GitHub ↗
(headers, sensitiveSet)

Source from the content-addressed store, hash-verified

224}
225
226function stripMatchingHeaders(headers, sensitiveSet) {
227 if (!headers) {
228 return;
229 }
230
231 Object.keys(headers).forEach((header) => {
232 if (sensitiveSet.has(header.toLowerCase())) {
233 delete headers[header];
234 }
235 });
236}
237
238function isSameOriginRedirect(redirectOptions, requestDetails) {
239 if (!requestDetails) {

Callers 1

http.jsFile · 0.85

Calls 2

forEachMethod · 0.80
hasMethod · 0.80

Tested by

no test coverage detected