Open robobun opened 1 year ago
Setting the windowBits
argument in range of -9..-15
to the underlying zlib library is used to signal that the incoming chunks will be in deflate/inflate's raw mode. so there being an error here is correct but this message is ergo very misleading. thank you for the report, i'll be fixing this soon.
Setting the
windowBits
argument in range of-9..-15
causes the function to return an "invalid buffer", opposed to using a positive number which outputs a buffer properly. Using:Originally reported on Discord:
GZIP negative windowBits argument not working