tusd/pkg/handler
André Fontenele b5cbafdbd5
handler: Avoid calling WriteChunk if no data is available (#746)
* fix: avoiding `writeChunk` no-op

* fix: formatting

* fix: added return statement

* fix: preserving side effects

* refactor: smaller change
2022-06-17 14:04:26 +02:00
..
body_reader.go core: Handle errors from reading request body centrally 2021-04-26 10:08:37 +02:00
composer.go core: Replace old LockerDataStore with new Locker 2019-09-12 12:37:43 +02:00
composer.mgo core: Remove deprecated DataStore option 2019-08-20 16:16:05 +02:00
composer_test.go core: Add back composer_test 2019-08-26 20:41:00 +02:00
concat_test.go core: Pass Upload interfaces to ConcatUploads 2019-09-19 12:14:25 +02:00
config.go handler, cli: Add a flag to disable downloads and termination of uploads (#668) 2022-03-28 23:43:35 +02:00
config_test.go core: Add context to DataStores 2019-09-15 13:43:59 +02:00
cors_test.go handler, cli: Add a flag to disable downloads and termination of uploads (#668) 2022-03-28 23:43:35 +02:00
datastore.go core: Pass Upload interfaces to ConcatUploads 2019-09-19 12:14:25 +02:00
doc.go core: Move packages into pkg/ and internal/ folders 2019-06-11 18:23:20 +02:00
get_test.go core: Allow numbers in mime types 2019-10-07 11:28:13 +02:00
handler.go handler, cli: Add a flag to disable downloads and termination of uploads (#668) 2022-03-28 23:43:35 +02:00
handler_mock_test.go core: Pass Upload interfaces to ConcatUploads 2019-09-19 12:14:25 +02:00
head_test.go core: Allow non-tus HEAD requests, Add Length to HEAD responses 2021-10-18 00:29:13 +02:00
log.go core: Move packages into pkg/ and internal/ folders 2019-06-11 18:23:20 +02:00
metrics.go core: Move packages into pkg/ and internal/ folders 2019-06-11 18:23:20 +02:00
options_test.go core: Refactor DataStore 2019-08-25 22:10:55 +02:00
patch_test.go core: Fix wrong offset in upload progress notifications 2021-10-13 21:08:09 +02:00
post_test.go handler: Use correct separation symbol for parsing Forwarded header (#433) 2020-10-12 12:36:55 +02:00
subtest_test.go WIP on DataStore refactor 2019-08-24 15:14:51 +02:00
terminate_test.go core: Provide HTTP request details to hooks 2019-09-19 11:15:48 +02:00
unrouted_handler.go handler: Avoid calling WriteChunk if no data is available (#746) 2022-06-17 14:04:26 +02:00
unrouted_handler_test.go Allow empty metadata values 2020-06-20 13:24:07 +02:00
utils_test.go gcsstore: Remove unnecessary typecasts and unused mocks (#313) 2019-10-09 14:44:13 +02:00