Commit d21d93c
fix(request): shadow parsed _url in requestWithURL proxy
The proxy returned by requestWithURL only overrode the url string, so
the runtime-parsed req._url object (srvx node) leaked through to
consumers. A mounted h3-based fetch handler then reused the original
un-stripped URL instead of re-parsing the overridden url, returning 404
on Node while working on web runtimes.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent 8a380f1 commit d21d93c
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
32 | 43 | | |
33 | 44 | | |
34 | 45 | | |
| |||
0 commit comments