Fix HttpListenerRequestUriBuilder.GetPath's search for `?` (#72794)
authorStephen Toub <stoub@microsoft.com>
Tue, 26 Jul 2022 11:12:45 +0000 (07:12 -0400)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2022 11:12:45 +0000 (07:12 -0400)
commitb5de033430970aabef581b9830035c20dbe5b97a
tree85278fc6c5f1da57f9bfa6ad7a5381ef058faf16
parentd9da50c97c8f8072828c0634c12992ffe278cd40
Fix HttpListenerRequestUriBuilder.GetPath's search for `?` (#72794)

It's intended to only be searching in the path, but earlier logic may have detected the path to start beyond 0.
src/libraries/System.Net.HttpListener/src/System/Net/HttpListenerRequestUriBuilder.cs
src/libraries/System.Net.HttpListener/tests/InvalidClientRequestTests.cs