Repository navigation
test: add regression test to ensure url embed preservation - #155
Conversation
📝 WalkthroughWalkthroughAdded a single test case to test/_utils.test.ts verifying that setupOutgoing preserves multiple embedded http:// and https:// substrings within the outgoing.path when the target base path ends with a slash. ChangessetupOutgoing Path Preservation Test
Estimated code review effort: 1 (Trivial) | ~3 minutes Estimated code review effort1 (Trivial) | ~3 minutes Related Issues: None specified. Related PRs: Ports a test case referenced from an upstream PR. Suggested labels: tests Suggested reviewers: None specified. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #155 +/- ##
=======================================
Coverage 94.95% 94.95%
=======================================
Files 8 8
Lines 793 793
Branches 328 328
=======================================
Hits 753 753
Misses 35 35
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A part of #2.
The http-party/node-http-proxy#1487 bug doesn't exist in
httpxy. This is because the join URL method we are using is from @h3js, which is a proper implementation.Since
httpxyembed/inline thejoinURLimplementation from @h3js, the PR ports the corresponding regression test case to ensure this case is covered.Summary by CodeRabbit
http://andhttps://segments intact within the incoming request path.