inital commit
This commit is contained in:
@@ -142,7 +142,8 @@ func seedJar(jar http.CookieJar, fa Cookies, cf CFCookies, sfw SFWMode) {
|
||||
// Context cancellation propagates through the http.Request and the rate
|
||||
// limiter a cancelled ctx surfaces from Wait or from the underlying
|
||||
// transport, depending on which phase the request is in.
|
||||
func (c *Client) fetch(ctx context.Context, rawURL string, parse func(doc *goquery.Document) error) error {
|
||||
func (c *Client) fetch(ctx context.Context, rawURL string, parse func(doc *goquery.Document) error, opts ...Option) error {
|
||||
ctx = c.applyRequestOptions(ctx, opts)
|
||||
clone := c.collector.Clone()
|
||||
clone.SetClient(c.http)
|
||||
clone.SetCookieJar(c.jar)
|
||||
|
||||
Reference in New Issue
Block a user