client9 / shlib

portable functions for posix shell environments
The Unlicense
360 stars 36 forks source link

http_download_curl: fix failure handling and output message #34

Closed fenollp closed 3 months ago

fenollp commented 3 years ago

Using a godownloader-generated sh script, GitHub would sometimes return a 302 (even though curl -L -w '%{http_code}' is provided...).

This replaces the sometimes wrong HTTP code checking logic with curl's own.