[testmode] Stop using deprecated `url.parse` (#98194)
`unstable_getResponseFromNextConfig` parsed the request URL with the deprecated `url.parse()` (DEP0169) This change constructs the same pathname/query/protocol/host shape from the WHATWG `URL` API instead, keeping `protocol` and `host` null for relative URLs so the existing rewrite base fallback keeps working. Query parsing goes through the existing `searchParamsToUrlQuery` helper, which decodes `+` as a space where the legacy parser left it untouched; we accept that edge-case difference in this testing utility.
Showing
Please
register
or
sign in
to comment