depado / goploader

Easy file sharing with server-side encryption, curl/httpie/wget compliant
https://docs.gpldr.in
MIT License
273 stars 41 forks source link

Use context.File for unencrypted downloads #62

Closed tribut closed 6 years ago

tribut commented 6 years ago

This is faster than io.copy, allows the clients to show progress (emits the Content-Length header) and enables resuming (supports the Range header - cf #28).

This commit also reduces the amount of duplicated code between View() and Head().

depado commented 6 years ago

thanks