diff --git a/main.go b/main.go index d77fa85..52e5574 100644 --- a/main.go +++ b/main.go @@ -82,10 +82,11 @@ func httpHandler(w http.ResponseWriter, r *http.Request, pathname string) { } func proxy(w http.ResponseWriter, r *http.Request, client *http.Client, pathname string) { - fmt.Println("Proxy: ", pathname) + fmt.Println("Proxy: ", pathname, "Method: ", r.Method) req, _ := http.NewRequest(r.Method, pathname, r.Body) for k, v := range r.Header { req.Header.Set(k, strings.Join(v, ",")) + fmt.Println("Header: ", k, ":", strings.Join(v, ",")) } res, e := client.Do(req) if e != nil {