Skip to content

Commit 6aac5f3

Browse files
committed
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.
1 parent ab6d09d commit 6aac5f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/server/src/org/openqa/selenium/jre/server/JreMessages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class JreMessages {
3131
static HttpRequest asRequest(HttpExchange exchange) {
3232
HttpRequest request = new HttpRequest(
3333
HttpMethod.valueOf(exchange.getRequestMethod()),
34-
exchange.getRequestURI().toString());
34+
exchange.getRequestURI().getPath());
3535

3636
String query = exchange.getRequestURI().getQuery();
3737
if (query != null) {

0 commit comments

Comments
 (0)