Skip to content

Commit

Permalink
Print send body debug message with client info.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Jul 28, 2013
1 parent 011b606 commit 33d5c05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ func (c *clientConn) readResponse(sv *serverConn, r *Request, rp *Response) (err

if rp.hasBody(r.Method) {
if err = sendBody(c, sv, nil, rp); err != nil {
if debug {
debug.Printf("cli(%s) send body %v\n", c.RemoteAddr(), err)
}
// Non persistent connection will return nil upon successful response reading
if err == io.EOF {
// For persistent connection, EOF from server is error.
Expand Down

0 comments on commit 33d5c05

Please sign in to comment.