Correctly set the URI of a JRE-backed HttpRequest
We were previously using the full request URI, which includes any
fragments or query strings. This was incorrect. Oops.
static HttpRequest asRequest(HttpExchange exchange) {
HttpRequest request = new HttpRequest(
HttpMethod.valueOf(exchange.getRequestMethod()),
- exchange.getRequestURI().toString());
+ exchange.getRequestURI().getPath());
String query = exchange.getRequestURI().getQuery();
if (query != null) {
