From a7c7ef236750cbfb2ea81b0064a329be10cd0f05 Mon Sep 17 00:00:00 2001 From: So-chiru Date: Sun, 2 Aug 2020 10:11:27 +0900 Subject: [PATCH] Fix comment typo --- http.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/http.go b/http.go index e18e91fd96..28da707857 100644 --- a/http.go +++ b/http.go @@ -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()) }