Skip to content

Commit

Permalink
docs: Handle slash trimmed path in example server (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
blmhemu authored Apr 23, 2024
1 parent 15f05c0 commit 26c8870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func main() {
// our own. In the end, tusd will start listening on and accept request at
// http://localhost:8080/files
http.Handle("/files/", http.StripPrefix("/files/", handler))
http.Handle("/files", http.StripPrefix("/files", handler))
err = http.ListenAndServe(":8080", nil)
if err != nil {
panic(fmt.Errorf("unable to listen: %s", err))
Expand Down

0 comments on commit 26c8870

Please sign in to comment.