MCPcopy Create free account
hub / github.com/angular/dev-infra / shouldRemoveHeader

Function shouldRemoveHeader

github-actions/saucelabs/set-saucelabs-env.js:7730–7742  ·  view source on GitHub ↗
(header, removeContent, unknownOrigin)

Source from the content-addressed store, hash-verified

7728 }
7729 }
7730 onBodySent(chunk) {
7731 if (this.handler.onBodySent) {
7732 this.handler.onBodySent(chunk);
7733 }
7734 }
7735 };
7736 function parseLocation(statusCode, headers) {
7737 if (redirectableStatusCodes.indexOf(statusCode) === -1) {
7738 return null;
7739 }
7740 for (let i = 0; i < headers.length; i += 2) {
7741 if (headers[i].length === 8 && util.headerNameToString(headers[i]) === "location") {
7742 return headers[i + 1];
7743 }
7744 }
7745 }

Callers 1

cleanRequestHeadersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected