Skip to content

Commit

Permalink
JasonLeyba: For consistency with the java Selenium server, make the i…
Browse files Browse the repository at this point in the history
…PhoneDriver's server available at /wd/hub. The server will still work for legacy clients expecting /hub. This will allow clients that hard code /wd/hub as the server root to use the iPhoneDriver.

r14501
  • Loading branch information
jleyba committed Nov 2, 2011
1 parent f74fd7b commit 5298f7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iphone/src/objc/RESTServiceMapping.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ - (id)init {
// The root of our REST service.
HTTPVirtualDirectory *restRoot = [[[HTTPVirtualDirectory alloc] init] autorelease];
[serverRoot_ setResource:restRoot withName:@"hub"];

// Make the root also accessible from /wd/hub. This will allow clients hard
// coded for the java Selenium server to also work with us.
HTTPVirtualDirectory *wd = [[[HTTPVirtualDirectory alloc] init] autorelease];
[wd setResource:restRoot withName:@"hub"];
[serverRoot_ setResource:wd withName:@"wd"];

HTTPDataResponse *response =
[[HTTPDataResponse alloc]
Expand Down

0 comments on commit 5298f7d

Please sign in to comment.