Skip to content

Commit

Permalink
Support relative redirects in grid (#2805)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Watt authored and lukeis committed Sep 20, 2016
1 parent 978350b commit 0fce43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/server/src/org/openqa/grid/internal/TestSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ private void processResponseHeaders(HttpServletRequest request, HttpServletRespo
// the location needs to point to the hub that will proxy
// everything.
if (name.equalsIgnoreCase("Location")) {
URL returnedLocation = new URL(value);
URL returnedLocation = new URL(remoteURL, value);
String driverPath = remoteURL.getPath();
String wrongPath = returnedLocation.getPath();
String correctPath = wrongPath.replace(driverPath, "");
Expand Down

0 comments on commit 0fce43e

Please sign in to comment.