Repository navigation
server: fix Server.url for Windows Unix socket paths - #40307
mmustafasenoglu wants to merge 1 commit into
Conversation
Convert backslashes to forward slashes in Unix socket paths on Windows to produce valid URLs. Previously, paths like 'C:\test' would produce 'unix://C:\test' which is an invalid URL due to backslashes and colon. Fixes: #40182
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. Walkthrough
ChangesUnix socket URL generation
Suggested reviewers: Merge Risk: ⚪ Minimal · up to This localized Windows URL formatting change has no actionable merge-blocking risk remaining and is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for the fix, @mmustafasenoglu, and for tracking down the cause. #35806 (opened earlier) fixes the same Closing this one in favor of #35806. |
Fixes #40182
Summary
When using Bun.serve with unix path on Windows, the server.url property returned an invalid URL because Windows paths contain backslashes and colons.
Changes
Testing