Skip to content
Snippets Groups Projects
Commit 940673b3 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Add debugging utilities

parent 98eb550f
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ func headerWrapper(handler http.Handler) http.Handler { ...@@ -12,7 +12,7 @@ func headerWrapper(handler http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
println(r.URL.Path) println(r.URL.Path)
for key, value := range r.Header { for key, value := range r.Header {
fmt.Printf("%s: %s", key, value) fmt.Printf("%s: %s\n", key, value)
} }
handler.ServeHTTP(w, r) handler.ServeHTTP(w, r)
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment