Repository navigation
Commit 3b5f8b0
committed
fix(utils): revert trailing slash preservation in
Reverts #137 to restore the pre-fix path behavior, since downstream consumers (http-proxy-middleware v4, webpack-dev-server, @rspack/dev-server) rely on `joinURL("/api", "/")` returning `"/api"` rather than `"/api/"`.
Adds a regression test guarding `setupOutgoing` so the previous behavior stays locked in.joinURL
1 parent c68013c commit 3b5f8b0
2 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
| 197 | + | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
319 | 332 | | |
320 | 333 | | |
321 | 334 | | |
| |||
693 | 706 | | |
694 | 707 | | |
695 | 708 | | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | 709 | | |
705 | 710 | | |
706 | 711 | | |
| |||
0 commit comments