Skip to content

Comments

fix(http): treat http://localhost as base URL for relative paths to a…#4

Open
MitchLewis930 wants to merge 1 commit intopr_024_beforefrom
pr_024_after
Open

fix(http): treat http://localhost as base URL for relative paths to a…#4
MitchLewis930 wants to merge 1 commit intopr_024_beforefrom
pr_024_after

Conversation

@MitchLewis930
Copy link

@MitchLewis930 MitchLewis930 commented Jan 30, 2026

PR_024


Note

Low Risk
Single-line change limited to URL parsing; behavior change only affects cases where fullPath is relative, with minimal impact on normal absolute-URL requests.

Overview
Fixes URL parsing for relative request paths in the Node http adapter.

new URL(fullPath) now uses http://localhost as a fallback base (new URL(fullPath, 'http://localhost')), preventing errors when config.url (after buildFullPath) is a relative URL and ensuring protocol/host extraction works consistently.

Written by Cursor Bugbot for commit 128d56f. This will update automatically on new commits. Configure here.

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