jackhftang / tusc

Single small binary for both TUS server and client
MIT License
25 stars 3 forks source link

How to pass authentication token? #2

Closed gbonnefille closed 4 years ago

gbonnefille commented 4 years ago

My TUS server use a TOKEN for authentication. I have to fill the X-Auth-AccessKey: HTTP Header for that.

How can I set such information?

jackhftang commented 4 years ago

Updated to 0.4.7. It allows passing http headers like this tusc c http://example.com/file/ somefile -H 'X-Auth-AccessKey: token abcdefg'