Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur White committed Aug 2, 2017
1 parent 6a6115a commit f82f095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Debugging a request is pretty simple with [Response.Dump](https://godoc.org/gith
It prints the request info, writes the body in a file and opens it in your browser.

```Go
res, err := Get("http://example.com").Do()
res, err := client.Get("http://example.com").Do()
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (r *Response) Dump() {

if strings.HasPrefix(r.Header.Get("Content-Type"), "text/html") {
buf := bytes.NewBufferString("<pre style=\"background:#000;color:#0f0;font:13px/1.2 monospace;padding:20px\">")
log.New(buf, "", log.LstdFlags).Print(" - ", r)
log.New(buf, "", log.LstdFlags).Println("-", r)
buf.WriteString("</pre>")
if _, err = io.Copy(f, buf); err != nil {
panic(err)
Expand Down

0 comments on commit f82f095

Please sign in to comment.