You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(event): clone URL for pathname normalization instead of mutating shared _url
The runtime-provided parsed URL (req._url) is shared with req.url and,
on node, srvx syncs pathname mutations back into the raw request. The
in-place percent-decode therefore destroyed the original wire encoding
on node while web runtimes kept it, leaving no way to read the
undecoded URL. Build a fresh FastURL when decoding changes the pathname
so event.url is normalized on every runtime while req.url and the raw
node req.url stay pristine. The clone (one URL parse) is only paid on
pathnames whose decode is not an identity.
closes#1432
Co-Authored-By: Claude Fable 5 <[email protected]>
0 commit comments