Closed tribut closed 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().
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().