mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 00:26:26 +00:00
feat(cli): identify jobnet and jobdanmark API requests with an honest User-Agent (#283)
* fix(cli): send User-Agent on jobnet and jobdanmark API requests apiFetch/apiPost hit the portals' APIs without a User-Agent header, while every other Danish-portal CLI sends one on purpose (jobbank exports USER_AGENT and its tests assert it; jobindex sets it on htmlFetch). Requests without one are rejected by the portals' bot filters. * fix(cli): satisfy strict typecheck in user-agent regression test * refactor(cli): reframe user-agent tests as honest self-identification * docs(changelog): entry for #283 user-agent self-identification
This commit is contained in:
@@ -43,6 +43,13 @@ per-file diff commands.
|
||||
during #275 (vetoes reported in console output but `language_gate: null` on every persisted
|
||||
entry). Mirrors the existing `gaps`/`strengths` pinning pattern. No behavior change.
|
||||
|
||||
- **The jobnet and jobdanmark CLIs identify themselves on every API request** (#283) - their
|
||||
`apiFetch`/`apiPost` wrappers now send an explicit `User-Agent` (`jobnet-cli/1.0`,
|
||||
`jobdanmark-cli/1.0`) instead of Bun's anonymous default token, matching the honest
|
||||
self-identification jobindex already uses on `htmlFetch`. The new `user-agent.test.ts`
|
||||
suites assert the header on every request wrapper. No response behavior observed to
|
||||
change.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Negative and fractional filter flags are rejected in the Danish portal CLIs** (#281) -
|
||||
|
||||
Reference in New Issue
Block a user