From 26c88700b5bddfaacffcc18c65b20dde3444afc4 Mon Sep 17 00:00:00 2001 From: Hemanth Bollamreddi Date: Tue, 23 Apr 2024 11:41:00 +0530 Subject: [PATCH] docs: Handle slash trimmed path in example server (#1118) --- examples/server/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/server/main.go b/examples/server/main.go index 49b3fcf4e..7f0577ec5 100644 --- a/examples/server/main.go +++ b/examples/server/main.go @@ -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))