Skip to content

Commit

Permalink
refactor internally
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Jun 4, 2017
1 parent b1cbbcd commit db28577
Show file tree
Hide file tree
Showing 8 changed files with 577 additions and 331 deletions.
8 changes: 6 additions & 2 deletions dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ func (r *Resp) dumpRequest(dump *dumpBuffer) {
if head {
r.dumpReqHead(dump)
}
if body && len(r.reqBody) > 0 {
dump.Write(r.reqBody)
if body {
if r.multipartHelper != nil {
dump.Write(r.multipartHelper.Dump())
} else if len(r.reqBody) > 0 {
dump.Write(r.reqBody)
}
}
}

Expand Down
1 change: 1 addition & 0 deletions dump_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package req
74 changes: 0 additions & 74 deletions option.go

This file was deleted.

95 changes: 0 additions & 95 deletions option_test.go

This file was deleted.

Loading

0 comments on commit db28577

Please sign in to comment.