Skip to content

Commit 52270ac

Browse files
authored
Allow processing text/html as string
1 parent ade4b0b commit 52270ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

http_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ func (c *Client) readContent(resp *gentleman.Response, data interface{}) error {
9191
case "text/plain":
9292
*(data.(*string)) = resp.String()
9393
return nil
94+
case "text/html":
95+
*(data.(*string)) = resp.String()
96+
return nil
9497
case "application/octet-stream", "application/zip", "application/pdf", "text/xml":
9598
*(data.(*[]byte)) = resp.Bytes()
9699
return nil

0 commit comments

Comments
 (0)