Skip to content

Commit

Permalink
fix(httpc): fix typo errors (#2189)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenquan committed Jul 27, 2022
1 parent 5348375 commit 003adae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/httpc/responses.go
Expand Up @@ -18,12 +18,12 @@ func Parse(resp *http.Response, val interface{}) error {
return ParseJsonBody(resp, val)
}

// ParseHeaders parses the rsponse headers.
// ParseHeaders parses the response headers.
func ParseHeaders(resp *http.Response, val interface{}) error {
return encoding.ParseHeaders(resp.Header, val)
}

// ParseJsonBody parses the rsponse body, which should be in json content type.
// ParseJsonBody parses the response body, which should be in json content type.
func ParseJsonBody(resp *http.Response, val interface{}) error {
if withJsonBody(resp) {
return mapping.UnmarshalJsonReader(resp.Body, val)
Expand Down

0 comments on commit 003adae

Please sign in to comment.