(stream4, headers)
| 76877 | headers.set(header, value[0]); |
| 76878 | } |
| 76879 | } else if (value) { |
| 76880 | headers.set(header, value); |
| 76881 | } |
| 76882 | } |
| 76883 | return headers; |
| 76884 | } |
| 76885 | function getDecodedResponseStream(stream4, headers) { |
| 76886 | const contentEncoding = headers.get("Content-Encoding"); |
| 76887 | if (contentEncoding === "gzip") { |
| 76888 | const unzip = zlib2.createGunzip(); |
| 76889 | stream4.pipe(unzip); |
| 76890 | return unzip; |
| 76891 | } else if (contentEncoding === "deflate") { |
| 76892 | const inflate = zlib2.createInflate(); |
| 76893 | stream4.pipe(inflate); |
| 76894 | return inflate; |
no test coverage detected
searching dependent graphs…