jschx / uguush

Moved to GitLab
https://gitlab.com/jschx/uguush
MIT License
69 stars 16 forks source link

More robust file extension handling in -l #22

Closed lc-guy closed 9 years ago

lc-guy commented 9 years ago

Checks the destination page's content-type and checks in /usr/share/mime/globs the correct extension to use. If the file is not present, fallback to the old method. curl -sf --head only downloads the header, which means the content doesn't actually get downloaded 2 times in a row.