fix(cli): honest User-Agent tokens on jobbank and jobdanmark detail

jobbank sent a full Chrome browser string and jobdanmark's detail
command a bare Mozilla/5.0. Both now use the (compatible; <portal>-cli/1.0)
token per the identification posture settled in #277. Verified live:
both portals serve identical responses to the honest token.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mads Lorentzen
2026-08-05 06:34:00 +02:00
co-authored by Claude Fable 5
parent 60c735946d
commit 45513464dc
2 changed files with 2 additions and 3 deletions
@@ -222,7 +222,7 @@ export const detail = defineCommand({
const response = await fetch(url, {
headers: {
"Accept": "text/html,application/xhtml+xml",
"User-Agent": "Mozilla/5.0",
"User-Agent": "Mozilla/5.0 (compatible; jobdanmark-cli/1.0)",
},
signal: AbortSignal.timeout(15000),
})