Fixed important bug on rendering that was causing client request made too. Updated chromedp dependency

This commit is contained in:
Musab Gültekin
2019-07-26 16:07:09 +03:00
parent 762854e511
commit e07ef4d66d
3 changed files with 14 additions and 13 deletions

View File

@ -77,8 +77,9 @@ func NewClient(maxBodySize int64, charsetDetectDisabled bool, retryTimes int, re
func (c *Client) DoRequest(req *Request) (resp *Response, err error) {
if req.Rendered {
resp, err = c.DoRequestChrome(req)
} else {
resp, err = c.DoRequestClient(req)
}
resp, err = c.DoRequestClient(req)
// Retry on Error
if err != nil {