From be895ebf17febfe71eaa64fc2a6d83113ae5478e Mon Sep 17 00:00:00 2001 From: eagle1maledetto Date: Mon, 9 Mar 2026 22:04:28 +0100 Subject: [PATCH] fix: pass Impersonate option to extractor HTTP client The `Impersonate` field from extractor config was not being forwarded to `NewHTTPClientOptions` when building the extractor context in `FromURL()`. This meant that even when `impersonate: true` was set in the extractor YAML configuration, the HTTP client would never call `NewChromeClient()`, effectively making TLS fingerprint impersonation a no-op for all extractors. This one-liner adds the missing field passthrough, aligning `Impersonate` with the other options (`Proxy`, `DisableProxy`, etc.) that are already forwarded correctly. --- internal/extractors/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/extractors/util.go b/internal/extractors/util.go index e8f5e0c..673311c 100644 --- a/internal/extractors/util.go +++ b/internal/extractors/util.go @@ -88,6 +88,7 @@ func FromURL(url string) *models.ExtractorContext { DownloadProxy: cfg.DownloadProxy, Proxy: cfg.Proxy, DisableProxy: cfg.DisableProxy, + Impersonate: cfg.Impersonate, }, ), }