From c297a5f66759319a9f823d05b03d002157e4416a Mon Sep 17 00:00:00 2001 From: blagoySimandoff Date: Mon, 9 Oct 2023 20:59:25 +0100 Subject: [PATCH] removed print statements --- response.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/response.go b/response.go index 230b4379..f0434462 100644 --- a/response.go +++ b/response.go @@ -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/") || @@ -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") {