This commit is contained in:
gospider
2025-02-21 16:39:35 +08:00
parent 5e4c6cfb35
commit aa1de1c0c7
3 changed files with 0 additions and 9 deletions

View File

@@ -7,7 +7,6 @@ import (
"errors"
"io"
"iter"
"log"
"net/http"
"net/url"
"strconv"
@@ -263,10 +262,6 @@ func (obj *Response) ContentType() string {
if obj.filePath != "" {
return http.DetectContentType(obj.content)
}
if obj.response.Header == nil {
log.Print(obj.response.Header == nil)
}
contentType := obj.response.Header.Get("Content-Type")
if contentType == "" {
contentType = http.DetectContentType(obj.content)