(header, removeContent, unknownOrigin)
| 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 | } |
no outgoing calls
no test coverage detected