Fix xxxtik empty results; replay solved identity on raw requests
Raw requester calls did not adopt the remembered FlareSolverr user agent, so a RedGifs token minted under it was rejected on every gif lookup. Tag/creator pages that mix non-RedGifs sources are refilled from later cursor batches instead of coming back empty. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MUYdCh2nCVsQYgJAT7gwSi
This commit is contained in:
@@ -496,6 +496,10 @@ impl Requester {
|
||||
timeout: Option<Duration>,
|
||||
http_version: Option<Version>,
|
||||
) -> Result<Response, wreq::Error> {
|
||||
// Replay the solved FlareSolverr identity here too: a token minted
|
||||
// through `get_with_headers` under that user agent is rejected (401)
|
||||
// when the follow-up raw request goes out with the default one.
|
||||
self.adopt_remembered_identity(url);
|
||||
let cookie_preview = self.debug_cookie_preview_from_owned_headers(url, &headers);
|
||||
#[cfg(not(feature = "debug"))]
|
||||
let _ = &cookie_preview;
|
||||
|
||||
Reference in New Issue
Block a user