fix: dont put leading slash in prefix

This commit is contained in:
Derrick Hammer 2024-01-20 06:03:07 -05:00
parent 43e52e1ae1
commit b50c6c9f85
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func BuildS5TusApi(portal interfaces.Portal) jape.Handler {
stripPrefix := func(h jape.Handler) jape.Handler {
return jape.Adapt(func(h http.Handler) http.Handler {
return http.StripPrefix("/s5/upload/tus/", h)
return http.StripPrefix("/s5/upload/tus", h)
})(h)
}