mini_portile
mini_portile copied to clipboard
Emit warning when an insecure URL is used to download files
I would like mini_portile
to emit a warning message when it downloads files over 'http'. Something like this would be great:
WARNING: insecure source being used: #{url}
This is what the digest value is for. So I think it would be better so print:
WARNING: insecure source being used: #{url} - Please define a MD5/SHA1/SHA256 digest value.
Ah, I agree. We should only emit this type of warning if a checksum is not provided.