Skip to content

refactor: send default fetch headers when resolving update downloads#259

Merged
arthurschreiber merged 1 commit into
masterfrom
refactor/simplify-cu-fetch
Jul 19, 2026
Merged

refactor: send default fetch headers when resolving update downloads#259
arthurschreiber merged 1 commit into
masterfrom
refactor/simplify-cu-fetch

Conversation

@arthurschreiber

Copy link
Copy Markdown
Contributor

Follow-up to #258, which was merged while this simplification was still under discussion.

The custom accept and user-agent headers on the update-page request are not load-bearing: a probe from real windows-2022/windows-2025 runners showed the pages return 200 (with the download link present) for native fetch requests with any user agent — including the default node UA and even the actions/http-client actions_orchestration_id/... string that gets 403'd when sent through @actions/http-client — while a curl control with accept: */* also passed. The 403 keys on the http-client request shape, not the headers.

Dropping the headers leaves a plain fetch(config.updateUrl), and the default user agent shares fate with every Node.js fetch user, making it less likely to be singled out by future bot filtering than a tool-specific string (which is exactly how the actions/http-client UA got blocked).

Also removes the inline comment referencing @actions/http-client — the context lives in #258 and the commit history.

🤖 Generated with Claude Code

The custom accept and user-agent headers are not needed - a probe from
real Windows runners showed the update pages accept native fetch
requests with any user agent, including the default. The default user
agent also shares fate with all Node.js fetch users, making it less
likely to be singled out by bot filtering than a tool-specific string.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@arthurschreiber

Copy link
Copy Markdown
Contributor Author

@dhensby PTAL.

@arthurschreiber
arthurschreiber merged commit 39b4e1f into master Jul 19, 2026
32 checks passed
@arthurschreiber
arthurschreiber deleted the refactor/simplify-cu-fetch branch July 19, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants