mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 14:13:26 +00:00
support Range request from HTTP Header #386
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @johnko on GitHub.
Hi,
If you want to support Range requests, the easy way is you need something like
in your
getHandlerinstead of the io.Copy.This will allow seeking for media files.
@johnko commented on GitHub:
example in my fork https://github.com/johnko/wtfc/blob/master/transfersh-server/handlers.go#L612-631
@paolafrancesca commented on GitHub:
@johnko
storage.Seekerseems to be suitable only for local storage