| 14850 | if (coding === "x-gzip" || coding === "gzip") { |
| 14851 | decoders.push(zlib.createGunzip({ |
| 14852 | // Be less strict when decoding compressed responses, since sometimes |
| 14853 | // servers send slightly invalid responses that are still accepted |
| 14854 | // by common browsers. |
| 14855 | // Always using Z_SYNC_FLUSH is what cURL does. |
| 14856 | flush: zlib.constants.Z_SYNC_FLUSH, |
| 14857 | finishFlush: zlib.constants.Z_SYNC_FLUSH |
| 14858 | })); |
| 14859 | } else if (coding === "deflate") { |
| 14860 | decoders.push(createInflate({ |
| 14861 | flush: zlib.constants.Z_SYNC_FLUSH, |
| 14862 | finishFlush: zlib.constants.Z_SYNC_FLUSH |
| 14863 | })); |
| 14864 | } else if (coding === "br") { |