Skip to content

fix(asset): preserve IPv6 brackets in server origin for url imports - #23354

Closed
vaibhavmashal wants to merge 1 commit into
vitejs:mainfrom
vaibhavmashal:fix/ipv6-origin-brackets
Closed

fix(asset): preserve IPv6 brackets in server origin for url imports#23354
vaibhavmashal wants to merge 1 commit into
vitejs:mainfrom
vaibhavmashal:fix/ipv6-origin-brackets

Conversation

@vaibhavmashal

Copy link
Copy Markdown

When using an IPv6 address for the server origin (like \http://[::1]), the \encodeURIPath\ function incorrectly encodes the square brackets into %5B\ and %5D. This causes issues with ?url\ imports that rely on the origin being valid. This PR restores the brackets in the origin host section after encoding.

Copilot AI lite review requested due to automatic review settings August 24, 2026 17:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR label Aug 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically flagged as likely to be created by a bot, LLM, or agent, and will be automatically closed. These contributions harm the maintenance of the project. Please read our AI policy for more information.

If you believe this is a mistake, please reply to this comment and we will review it.

@github-actions github-actions Bot closed this Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants