Skip to content

Commit 0fce43e

Browse files
Jason Wattlukeis
authored andcommitted
Support relative redirects in grid (#2805)
1 parent 978350b commit 0fce43e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/server/src/org/openqa/grid/internal/TestSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ private void processResponseHeaders(HttpServletRequest request, HttpServletRespo
488488
// the location needs to point to the hub that will proxy
489489
// everything.
490490
if (name.equalsIgnoreCase("Location")) {
491-
URL returnedLocation = new URL(value);
491+
URL returnedLocation = new URL(remoteURL, value);
492492
String driverPath = remoteURL.getPath();
493493
String wrongPath = returnedLocation.getPath();
494494
String correctPath = wrongPath.replace(driverPath, "");

0 commit comments

Comments
 (0)