Fixed build issue
This commit is contained in:
parent
e50fa3b1dc
commit
dd6687f976
@ -2,7 +2,6 @@ package geziyor
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"github.com/geziyor/geziyor/internal"
|
||||
)
|
||||
@ -44,7 +43,6 @@ func defaultHeadersMiddleware(g *Geziyor, r *Request) {
|
||||
|
||||
// parseHTMLMiddleware parses response if response is HTML
|
||||
func parseHTMLMiddleware(g *Geziyor, r *Response) {
|
||||
fmt.Println(r.Request.depth)
|
||||
if !g.Opt.ParseHTMLDisabled && r.isHTML() {
|
||||
r.DocHTML, _ = goquery.NewDocumentFromReader(bytes.NewReader(r.Body))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user