diff --git a/src/cmd/tusd/http.go b/src/cmd/tusd/http.go index f7b0da1..0a4bc29 100644 --- a/src/cmd/tusd/http.go +++ b/src/cmd/tusd/http.go @@ -11,7 +11,11 @@ import ( "strconv" ) +// fileRoute matches /files/. Go seems to use \r to terminate header +// values, so to ease bash scripting, the route ignores a trailing \r in the +// route. Better ideas are welcome. var fileRoute = regexp.MustCompile("^/files/([^/\r\n]+)\r?$") + var filesRoute = regexp.MustCompile("^/files/?$") var dataStore *DataStore