Skip to content

Commit

Permalink
fix resp.Dump()
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Sep 21, 2017
1 parent 127e8b6 commit c7e2ddf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (r *Resp) dumpResponse(dump *dumpBuffer) {
}
}

func (r *Resp) dump() string {
func (r *Resp) Dump() string {
dump := new(dumpBuffer)
r.dumpRequest(dump)
l := dump.Len()
Expand Down
2 changes: 1 addition & 1 deletion req.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (r *Req) Do(method, rawurl string, vs ...interface{}) (resp *Resp, err erro

// output detail if Debug is enabled
if Debug {
fmt.Println(resp.dump())
fmt.Println(resp.Dump())
}
return
}
Expand Down
2 changes: 1 addition & 1 deletion resp.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (r *Resp) Format(s fmt.State, verb rune) {
return
}
if s.Flag('+') { // include header and format pretty.
fmt.Fprint(s, r.dump())
fmt.Fprint(s, r.Dump())
} else if s.Flag('-') { // keep all informations in one line.
r.miniFormat(s)
} else { // auto
Expand Down

0 comments on commit c7e2ddf

Please sign in to comment.