Skip to content

Commit

Permalink
removed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
blagoySimandov committed Oct 9, 2023
1 parent 70b5333 commit c297a5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ func (r *Response) fixCharset(detectCharset bool, defaultEncoding string) error
return nil
}
contentType := strings.ToLower(r.Headers.Get("Content-Type"))
fmt.Println(detectCharset)
if strings.Contains(contentType, "image/") ||
strings.Contains(contentType, "video/") ||
strings.Contains(contentType, "audio/") ||
Expand All @@ -87,8 +86,7 @@ func (r *Response) fixCharset(detectCharset bool, defaultEncoding string) error
if !detectCharset {
return nil
}
_, nameOfEncoding, _ := charset.DetermineEncoding(r.Body, contentType)
fmt.Println(nameOfEncoding) //name of charset/encoding
_, nameOfEncoding, _ := charset.DetermineEncoding(r.Body, contentType) //name of charset/encoding
contentType = "text/plain; charset=" + nameOfEncoding
}
if strings.Contains(contentType, "utf-8") || strings.Contains(contentType, "utf8") {
Expand Down

0 comments on commit c297a5f

Please sign in to comment.