| 14850 | return; |
| 14851 | } |
| 14852 | let location = ""; |
| 14853 | const headersList = new HeadersList(); |
| 14854 | for (let i = 0; i < rawHeaders.length; i += 2) { |
| 14855 | headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true); |
| 14856 | } |
| 14857 | location = headersList.get("location", true); |
| 14858 | this.body = new Readable({ read: resume }); |
| 14859 | const decoders = []; |
| 14860 | const willFollow = location && request.redirect === "follow" && redirectStatusSet.has(status); |
| 14861 | if (request.method !== "HEAD" && request.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) { |
| 14862 | const contentEncoding = headersList.get("content-encoding", true); |
| 14863 | const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : []; |
| 14864 | const maxContentEncodings = 5; |