Skip to content

Commit

Permalink
Fix comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
So-chiru authored and erikdubbelboer committed Aug 2, 2020
1 parent 34a61fe commit a7c7ef2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,20 +394,20 @@ func gunzipData(p []byte) ([]byte, error) {
return bb.B, nil
}

// BodyUnbrotli returns un-gzipped body data.
// BodyUnbrotli returns un-brotlied body data.
//
// This method may be used if the request header contains
// 'Content-Encoding: gzip' for reading un-gzipped body.
// Use Body for reading gzipped request body.
// 'Content-Encoding: br' for reading un-brotlied body.
// Use Body for reading brotlied request body.
func (req *Request) BodyUnbrotli() ([]byte, error) {
return unBrotliData(req.Body())
}

// BodyUnbrotli returns un-gzipped body data.
// BodyUnbrotli returns un-brotlied body data.
//
// This method may be used if the response header contains
// 'Content-Encoding: gzip' for reading un-gzipped body.
// Use Body for reading gzipped response body.
// 'Content-Encoding: br' for reading un-brotlied body.
// Use Body for reading brotlied response body.
func (resp *Response) BodyUnbrotli() ([]byte, error) {
return unBrotliData(resp.Body())
}
Expand Down

0 comments on commit a7c7ef2

Please sign in to comment.