From 6950491b4f0475f488a3a47b8d7771131cd2e8e7 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 17 Feb 2009 19:59:23 -0800 Subject: [PATCH] drop trailing slashes - missed comment from last review TBR=rsc OCL=25135 CL=25135 --- src/lib/http/triv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/http/triv.go b/src/lib/http/triv.go index 666f2b204a..ea17d15ba2 100644 --- a/src/lib/http/triv.go +++ b/src/lib/http/triv.go @@ -87,8 +87,8 @@ func main() { flag.Parse(); http.Handle("/counter", new(Counter)); http.Handle("/go/", http.HandlerFunc(FileServer)); - http.Handle("/flags/", http.HandlerFunc(FlagServer)); - http.Handle("/args/", http.HandlerFunc(ArgServer)); + http.Handle("/flags", http.HandlerFunc(FlagServer)); + http.Handle("/args", http.HandlerFunc(ArgServer)); http.Handle("/go/hello", http.HandlerFunc(HelloServer)); http.Handle("/chan", ChanCreate()); err := http.ListenAndServe(":12345", nil); -- 2.48.1