Skip to content

Commit

Permalink
print string
Browse files Browse the repository at this point in the history
  • Loading branch information
danchengash committed Oct 1, 2024
1 parent 70e6a35 commit 5c63ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func NewReq(url string, body *[]byte, headers *map[string]string, debug ...bool)
if len(debug) != 0 {
if debug[0] {
fmt.Printf("-------------REQUEST START------------\n")
fmt.Printf("[BODY]: %v\n", req.Body())
fmt.Printf("[CODE]: %v\n[RESPONSE]: %v\n", resp.StatusCode(), resp.Body())
fmt.Printf("[BODY]: %s\n", req.Body())
fmt.Printf("[CODE]: %d\n[RESPONSE]: %s\n", resp.StatusCode(), resp.Body())
fmt.Printf("-------------REQUEST END------------\n")
}

Expand Down

0 comments on commit 5c63ea8

Please sign in to comment.