From e02f6b5cee531ffb8b0868f4f4a8dabd6a66f78d Mon Sep 17 00:00:00 2001 From: Meutel Date: Wed, 12 Jul 2017 18:39:07 +0200 Subject: [PATCH] Example http improved --- example-httpserver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example-httpserver/main.go b/example-httpserver/main.go index a899b2b..f62c677 100644 --- a/example-httpserver/main.go +++ b/example-httpserver/main.go @@ -10,7 +10,7 @@ type MyHandler int func (MyHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) { resp.Header().Set("Content-Type", "text/plain") - io.WriteString(resp, req.URL.Path) + io.WriteString(resp, req.RequestURI) } func main() {