<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.20.1 linux/amd64 </pre> ### Does this issue reproduce with the latest release? Yes ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env GOARCH="amd64" GOOS="linux" </pre></details> ### What did you do? <!-- If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on go.dev/play is best. --> https://go.dev/play/p/wXMvYKC1FSY ### What did you expect to see? 200 OK ### What did you see instead? 400 Bad Request The request sent to the server starts with `GET api/endpoint`. It should be `GET /api/endpoint`. The former generates a 400 error in url.ParseRequestURI.