MCPcopy
hub / github.com/axios/axios / readProxyField

Function readProxyField

lib/adapters/http.js:298–299  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

296 // redirect proxying to an attacker-controlled host.
297 const isProxyURL = proxy instanceof URL;
298 const readProxyField = (key) =>
299 isProxyURL || utils.hasOwnProp(proxy, key) ? proxy[key] : undefined;
300
301 const proxyUsername = readProxyField('username');
302 const proxyPassword = readProxyField('password');

Callers 1

setProxyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected