Fix comment typo

This commit is contained in:
So-chiru
2020-08-02 10:11:27 +09:00
committed by Erik Dubbelboer
parent 34a61fe63f
commit a7c7ef2367
+6 -6
View File
@@ -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())
}