fix: dont put leading slash in prefix
This commit is contained in:
parent
43e52e1ae1
commit
b50c6c9f85
|
@ -123,7 +123,7 @@ func BuildS5TusApi(portal interfaces.Portal) jape.Handler {
|
||||||
|
|
||||||
stripPrefix := func(h jape.Handler) jape.Handler {
|
stripPrefix := func(h jape.Handler) jape.Handler {
|
||||||
return jape.Adapt(func(h http.Handler) http.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)
|
})(h)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue