Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
πŸ’¬πŸ€ Added checking for plain text
Browse files Browse the repository at this point in the history
Co-Authored-By: Ben Morrison <ben@gbmor.dev>
  • Loading branch information
athul and gbmor authored Feb 13, 2020
1 parent 89c1840 commit 09cf675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods/fns.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func formatresp(resp *http.Response) string {
magenta.Print(value, "\n")
}
retbody = yellow.Sprintf("\nStatus:\t\t%s\n\nStatusCode:\t%d\n", resp.Status, resp.StatusCode) + fmt.Sprintf("\n%s\n", string(s))
} else if strings.Contains(heads, "xml") || strings.Contains(heads, "html") {
} else if strings.Contains(heads, "xml") || strings.Contains(heads, "html") || strings.Contains(heads, "plain") {
for key, value := range resp.Header {
c.Print(key, " : ")
magenta.Print(value, "\n")
Expand Down

0 comments on commit 09cf675

Please sign in to comment.