mirror of
1
Fork 0
gotosocial/internal/api/client/fileserver
tobi 6ebdc306ed
[bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281)
* close pipereader on failed data function

* gently slurp the bytes

* readability updates

* go fmt

* tidy up file server tests + add more cases

* start moving io wrappers to separate iotools package. Remove use of buffering while piping recache stream

Signed-off-by: kim <grufwub@gmail.com>

* add license text

Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: kim <grufwub@gmail.com>
2022-12-21 11:17:43 +01:00
..
fileserver.go serve HEAD requests via the fileserver (#735) 2022-07-30 13:42:47 +01:00
fileserver_test.go [bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281) 2022-12-21 11:17:43 +01:00
servefile.go [bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281) 2022-12-21 11:17:43 +01:00
servefile_test.go [bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281) 2022-12-21 11:17:43 +01:00