Skip to content

Commit

Permalink
Fix to use RequestURI()
Browse files Browse the repository at this point in the history
close #2
  • Loading branch information
yuya-takeyama committed Mar 26, 2015
1 parent d4a59e7 commit e605a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -110,7 +110,7 @@ func createSubReq(r *http.Request) (*http.Request, []byte, error) {
func printRequest(w io.Writer, req *http.Request, body []byte) {
fmt.Fprintln(w, ansi.Color("Request:", "blue"))

fmt.Fprintf(w, "%s %s %s\r\n", req.Method, req.URL.Path, req.Proto)
fmt.Fprintf(w, "%s %s %s\r\n", req.Method, req.URL.RequestURI(), req.Proto)
req.Header.Write(w)
w.Write(body)
}
Expand Down

0 comments on commit e605a67

Please sign in to comment.