Example http improved

This commit is contained in:
Meutel 2017-07-12 18:39:07 +02:00
parent 28962d2d44
commit e02f6b5cee
1 changed files with 1 additions and 1 deletions

View File

@ -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() {