mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-08 16:07:40 +00:00
fix(freehire-search): drop the github.com URL from the User-Agent (#689)
* fix(freehire-search): drop the github.com URL from the User-Agent #633 put a contact URL in freehire-search's User-Agent. /apply learns which hosts an installed portal serves from the host literals in its cli/src, so github.com became a freehire-search board host: any github.com link (a repo README or gist presented as a job posting) classified as an installed portal instead of an unverified source host. Keep the owner/project/version identifier freehire's API docs ask for and drop the optional contact URL. Pin github.com and gist.github.com as unverified in the host-check test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhZWmcevg3UX9udYi1CsHC * changelog: place the #689 entry under [Unreleased] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com>
This commit is contained in:
4 files changed
+25
-6
No files matched your search
@@ -138,7 +138,8 @@ points users to (`?q=<role>` scopes the counts). Example:
|
||||
serves HTML, which `cleanHtml` (`cli/src/helpers.ts`) strips into readable text.
|
||||
Search descriptions arrive already rendered by the API and are passed through
|
||||
verbatim — stripping them again would undo the Markdown structure.
|
||||
- Fetch sends `User-Agent: MadsLorentzen/ai-job-search/1.0 (+https://github.com/MadsLorentzen/ai-job-search; freehire-search)`
|
||||
- Fetch sends `User-Agent: MadsLorentzen/ai-job-search/1.0 (freehire-search)` (no contact
|
||||
URL: a host literal in `cli/src` makes `/apply` treat that host as this portal's board)
|
||||
and `Accept: application/json`, and uses exponential backoff with jitter on 429/5xx (max 6 retries). A connection error (API
|
||||
unreachable) fails fast with a clear message — no retry, since it is not
|
||||
transient server load — which is the graceful-degradation contract: an outage
|
||||
|
||||
Reference in new issue
Block a user