mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
feat(api): forward per-request proxy override to scrape handler
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { BrowserPool, PoolExhaustedError, SessionCache } from "@trawl/browser"
|
||||
import {
|
||||
isValidMethod,
|
||||
ProxyPool,
|
||||
RequestValidationError,
|
||||
requireContentTypeForBody,
|
||||
SUPPORTED_METHODS,
|
||||
@@ -80,6 +81,7 @@ function buildScrapeRequestFromFlareSolverr(req: FlareSolverrRequest): ScrapeReq
|
||||
headers,
|
||||
method,
|
||||
body: req.postData,
|
||||
proxy: req.proxy,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user