Closed ithinkihaveacat closed 5 years ago
I'm not sure if this worth additional note in readme, but feel free to make PR if you wish, it will be accepted. Just try to keep your note short.
PS. See https://github.com/nodeca/probe-image-size/issues/16 first. AFAIK, gzipped content should be supported, and problem CAN be on server side. But anyway... nobody cares... because no real need to request gripped images.
If a gzip encoded stream is requested via the
accept-encoding
header, probe-image-size fails withunrecognized file format
:Actual result:
Expected result (without
accept-encoding: gzip
):I suppose this is more or less working as intended, but it might be useful to mention this in the README somewhere. (Or perhaps this issue itself is sufficient "documentation".)
(One reason why you might end up piping
accept-encoding
headers to probe-image-size is if the original input was something like Chrome DevTools' "Copy as cURL" function, which bulk copies all headers.)