Commit Graph

228 Commits

Author SHA1 Message Date
Max Brosnahan 4d1b66dd4a Correct error response content length 2015-11-10 21:35:58 -07:00
Max Brosnahan 7cbeb02662 Extract id from url instead of query params
Now that the handler can be used directly we cannot rely on the pat
router for the id. This also makes it consistent with how ids are
extracted from urls elsewhere
2015-11-10 21:35:29 -07:00
Max Brosnahan bc88c70725 Update documentation 2015-11-10 21:34:47 -07:00
Max Brosnahan 093256b7a8 Expose Tus handlers 2015-11-10 21:34:47 -07:00
Max Brosnahan 71747f2805 Use new routed handler struct in cmd
Also includes changes made by gofmt
2015-11-10 21:32:42 -07:00
Max Brosnahan a65da4944d Extract handler with routing into separate struct 2015-11-10 21:32:41 -07:00
Max Brosnahan 604d4e35a8 Extract middleware into function 2015-11-10 21:32:41 -07:00
Marius 376b73ae4b Merge pull request #28 from gingermusketeer/allow_logger_to_be_configured
Allow logger to be configured
2015-11-09 21:53:10 +01:00
Marius b6b65c5dee Merge pull request #27 from vayam/master
Protocol Conformance + Bug fixes
2015-11-09 21:51:53 +01:00
Max Brosnahan e71b8fb0f3 Allow logger to be configured 2015-11-04 14:42:39 -07:00
Naren Venkataraman 7898128700 Fix tests 2015-11-04 04:56:32 -05:00
Naren Venkataraman db67b862ae s/ErrIllegalOffset/ErrMismatchOffset 2015-11-04 04:37:37 -05:00
Naren Venkataraman e451dc5f65 Make sure Upload-Offset in PATCH request is greater than 0 2015-11-04 04:33:32 -05:00
Naren Venkataraman 1f6aac2a49 Make sure PATCH request has application/offset+octet-stream 2015-11-04 04:23:09 -05:00
Naren Venkataraman 86dc420ebe Fix Content-Length/Body Len Mismatch 2015-11-04 04:16:41 -05:00
Marius b9ba10cca2 Merge branch 'master' of github.com:tus/tusd 2015-11-02 15:32:10 +01:00
Marius e13c87d966 Send empty response Body for HEAD requests
Fixes #26
2015-11-02 15:31:05 +01:00
Marius 4c59ae42b7 Merge pull request #25 from gingermusketeer/tweak_readme_links
Tweak README.md links
2015-10-18 20:18:36 +02:00
Max Brosnahan 549f6e6aad Change links to point to godoc.org
Also changes links to use https instead of http
2015-10-18 12:16:30 -06:00
Max Brosnahan 13315ad9c8 Tweak README.md links 2015-10-18 12:07:16 -06:00
Marius 52eb00b2f8 Use idle timeouts for read and write operations
Thanks to @LukaszMarchewka for making me indirectly aware of the incorret
patch and @jbardin for providing the proper timeout handling.

A connection now will be closed once no read operation success for 30ms
(default value, can be changed).

Fixes #24
2015-10-16 20:48:08 +02:00
Marius acd3a63213 Add options for read timeout to tusd command
Fixes #24
2015-10-16 20:02:08 +02:00
Acconut 7d25a9e65b Switch to X-HTTP-Method-Override 2015-10-06 18:27:40 +02:00
Acconut 3b4353578d Restrict toolchain builds tp required platforms 2015-08-19 18:24:20 +02:00
Acconut 5c81b40e70 Setup automatic releases with Travis 2015-08-19 18:08:15 +02:00
Kevin van Zonneveld a6d56b4444 Move Makefile to infra repo 2015-08-19 16:36:31 +02:00
Kevin van Zonneveld 186e192cb0 Move infra builder to own repo 2015-08-19 16:34:49 +02:00
Kevin van Zonneveld 942ec77216 Tusd installment placeholders /cc @Acconut 2015-08-19 16:16:43 +02:00
Kevin van Zonneveld 136b054d4c More efficient way of installing shortcuts 2015-08-18 16:30:43 +02:00
Kevin van Zonneveld 9e5bf0fbe7 Infra construction /cc @Acconut
All this needs now is a wget for the tus binary, and running it.
2015-08-18 16:11:53 +02:00
Acconut d36573d956 Use Travis badge for master branch 2015-07-31 12:36:58 +02:00
Acconut a284e89e28 Add Tus-Method-Override header 2015-07-31 12:35:21 +02:00
Acconut 75506bc129 Update README for new path to binary 2015-07-28 17:40:55 +02:00
Acconut c321ef8420 Move tusd binary in cmd subdirectory 2015-07-28 17:40:23 +02:00
Acconut f46e49697d Merge branch 'neXT' of github.com:tus/tusd into neXT 2015-07-28 14:59:08 +02:00
Acconut 2c78d31c27 Close io.Reader if possible 2015-07-28 14:58:52 +02:00
Marius 97dca3d325 Imporive README 2015-07-15 14:40:14 +02:00
Acconut 0c04ba220f prevent caching of HEAD responses 2015-05-26 16:17:35 +02:00
Acconut 30b913d544 rename uploads channel and add option 2015-04-26 00:46:53 +02:00
Acconut 152a8dad72 add uploads channel to handler 2015-04-18 20:56:24 +02:00
Acconut 21a6280ef8 add basepath flag to binary 2015-04-11 13:44:30 +02:00
Acconut e0fa7556b4 add limitedstore 2015-04-11 13:40:39 +02:00
Acconut efe70bb0f3 add test for returning offset after concatenation 2015-03-31 23:51:28 +02:00
Acconut 7456347c17 fix Tus-Extension test 2015-03-23 19:02:39 +01:00
Acconut 290fea5dac return new offset after successful PATCH request 2015-03-23 19:02:12 +01:00
Acconut e6f058eeca rename more TUS-* headers 2015-03-23 18:21:45 +01:00
Acconut dcc04b648e rename Creation element in Tus-Extension 2015-03-23 18:20:53 +01:00
Acconut 95d642a637 addd status text to failed tests 2015-03-23 18:17:21 +01:00
Acconut 46fabad314 update header names 2015-03-23 18:15:05 +01:00
Acconut c49f7bbf91 uppercase ID and URL to match golint 2015-03-23 17:58:13 +01:00