diff --git a/api/middleware/s5.go b/api/middleware/s5.go index 9ded1c5..f52b358 100644 --- a/api/middleware/s5.go +++ b/api/middleware/s5.go @@ -143,7 +143,7 @@ func BuildS5TusApi(portal interfaces.Portal) jape.Handler { return jape.Adapt(func(h http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { res := w - if r.Method == http.MethodPatch || r.Method == http.MethodPost { + if r.Method == http.MethodPost && r.URL.Path == "/s5/upload/tus" { res = &tusJwtResponseWriter{ResponseWriter: w} }