A base URL must not carry whitespace or control characters. new URL() trims
surrounding whitespace and drops tab/CR/LF silently, but the engine joins the
raw string to each request path, so "https://h/ " would request
/%20/api2u/... and a custom transport would see the raw value. Reject rather
than guess.
A base URL must not carry whitespace or control characters.
new URL()trims surrounding whitespace and drops tab/CR/LF silently, but the engine joins the raw string to each request path, so "https://h/ " would request/%20/api2u/...and a custom transport would see the raw value. Reject rather than guess.