Skip to content

Commit

Permalink
cli: Fix upload creation when using -basepath=/
Browse files Browse the repository at this point in the history
Closes #387
  • Loading branch information
Acconut committed May 25, 2020
1 parent fdf168f commit 5218192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tusd/cli/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Serve() {
if basepath == "/" {
// If the basepath is set to the root path, only install the tusd handler
// and do not show a greeting.
http.Handle("/", handler)
http.Handle("/", http.StripPrefix("/", handler))
} else {
// If a custom basepath is defined, we show a greeting at the root path...
http.HandleFunc("/", DisplayGreeting)
Expand Down

0 comments on commit 5218192

Please sign in to comment.