Repository navigation
fix(cli): a custom user-agent header is the agent of the probes that send no custom headers - #1156
Conversation
|
Review of #1156: the fix looks correct and scoped. I read the diff and the code around it. I did not run tests or the CLI.
Correctness: |
…send no custom headers #1152 The internal link check and the soft-404 confirmation took the crawl's random sticky agent while the crawl sent the -H value. The crawl's agent is now the custom header when one is set. Docs and CHANGELOG say which requests keep their own agent. Signed-off-by: Nik Cubrilovic <[email protected]>
06772da to
5046208
Compare
|
Review of #1156. The fix looks correct and small. I found nothing that should block the merge.
|
Signed-off-by: Nik Cubrilovic <[email protected]>
Auto-review did not completeThe
Partial findings recovered from the session (incomplete, unverified, and NOT a merge signal): Show partial reviewYou've hit your session limit · resets 1:40pm (UTC) |
Closes #1152.
Repro (local server logging each request, isolated home,
-H "user-agent: UAPROBE/1.0"): the internal link check (HEAD requests) and the soft-404 confirmation sent the crawl's random sticky browser agent, becausecrawl.config.userAgentis resolved from[crawler] user_agentonly while the crawl itself sent the header. The controllers now resolve the agent asuser_agentor the customUser-Agentheader (newcustomUserAgenthelper, case-insensitive, last spelling wins).After the fix the only requests not carrying the header are the reachability check before the crawl, the cloaking probe's browser fetch and the AI agent access probe's Claude-User fetch; docs/configuration/crawler.mdx now names these exceptions.
Docs: crawler.mdx updated. Skill: no change needed.