huydx / hget

interruptable, resumable download accelerator written in golang
MIT License
984 stars 68 forks source link

Try HTTPS first if scheme is missing #21

Open mholt opened 7 years ago

mholt commented 7 years ago

I think projects like this are in a good position to push the envelope with what is considered the norm / standard.

Given a URL like this, for instance:

example.com/files/download.zip

I'm willing to bet HTTP is assumed. I suggest trying HTTPS first:

https://example.com/files/download.zip

And if the connection is refused, only then revert to HTTP.