r-lib / pak

A fresh approach to package installation
https://pak.r-lib.org
642 stars 56 forks source link

Tolerate `.tar` files that pretend to be `.tar.gz` files #589

Open gaborcsardi opened 5 months ago

gaborcsardi commented 5 months ago

This happens when a web server claims Content-Encoding: x-gzip but it does not compresses the content.

We could also set

h <- curl::new_handle(accept_encoding = NULL)

which means that libcurl will not send an accept-encoding header, so the server should not claim Content-Encoding: x-gzip.