Skip to content

fix(api): preserve http apiFetch support#1325

Closed
Simon (simonhj) wants to merge 1 commit into
v1.xfrom
simon/api-fetch-http-support
Closed

fix(api): preserve http apiFetch support#1325
Simon (simonhj) wants to merge 1 commit into
v1.xfrom
simon/api-fetch-http-support

Conversation

@simonhj
Copy link
Copy Markdown

@simonhj Simon (simonhj) commented May 21, 2026

Summary

  • Route plain http: apiFetch URLs through node:http instead of always using node:https.
  • Keep HTTPS requests on the existing custom CA agent path so custom certificate behavior is preserved.
  • Add focused coverage for HTTP URL handling.

Tests

  • pnpm test:unit src/utils/api.test.mts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant