Skip to content

Commit

Permalink
from branch v2: fix: invalid memory address or nil pointer dereferenc…
Browse files Browse the repository at this point in the history
…e in response logger (#872)

Co-authored-by: Martin Jöhren <m.joehren@gmail.com>
  • Loading branch information
jeevatkm and matlockx committed Nov 2, 2024
1 parent f61ae03 commit 3ec8619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func responseDebugLogger(c *Client, res *Response) error {
debugLog := res.Request.values[debugRequestLogKey].(string)
debugLog += "~~~ RESPONSE ~~~\n" +
fmt.Sprintf("STATUS : %s\n", res.Status()) +
fmt.Sprintf("PROTO : %s\n", res.RawResponse.Proto) +
fmt.Sprintf("PROTO : %s\n", res.Proto()) +
fmt.Sprintf("RECEIVED AT : %v\n", res.ReceivedAt().Format(time.RFC3339Nano)) +
fmt.Sprintf("TIME DURATION: %v\n", res.Time()) +
"HEADERS :\n" +
Expand Down

0 comments on commit 3ec8619

Please sign in to comment.