diff --git a/crawler/freegog.go b/crawler/freegog.go index b7b7b0c..4ab1a14 100644 --- a/crawler/freegog.go +++ b/crawler/freegog.go @@ -62,7 +62,7 @@ func (c *FreeGOGCrawler) Crawl(num int) ([]*model.GameItem, error) { c.logger.Error("Failed to create session", zap.Error(err)) return nil, err } - resp, err := ccs.RequestWithWAFSession(http.MethodGet, constant.FreeGOGListURL, *session, nil) + resp, err := ccs.RequestWithWAFSession(http.MethodGet, constant.FreeGOGListURL, *session, "", nil) if err != nil { c.logger.Error("Failed to fetch", zap.Error(err)) return nil, err @@ -115,7 +115,7 @@ func (c *FreeGOGCrawler) CrawlByUrl(URL string) (*model.GameItem, error) { if err != nil { return nil, err } - resp, err := ccs.RequestWithWAFSession(http.MethodGet, URL, *session, nil) + resp, err := ccs.RequestWithWAFSession(http.MethodGet, URL, *session, "", nil) if err != nil { return nil, err }