Skip to content

Commit

Permalink
webdriver: Merge pull request #12 from SimonSapin/patch-1
Browse files Browse the repository at this point in the history
Upgrade hyper

Source-Repo: https://github.com/mozilla/webdriver-rust
Source-Revision: caf906e67d818f2db5d4f31b08abb0fee561ec43

--HG--
extra : subtree_source : http%3A//tristan.corp.lon2.mozilla.com%3A8000
extra : subtree_revision : d267ce5830f9deb20372b76d0c6f16943b1f48e6
  • Loading branch information
SimonSapin committed Jul 10, 2015
1 parent 2aa8128 commit 86abf0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testing/webdriver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ log = "0.3.1"
regex = "0.1.30"
rustc-serialize = "0.3.14"
uuid = "0.1.17"
hyper = "0.5"
hyper = "0.6"
4 changes: 2 additions & 2 deletions testing/webdriver/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ pub fn start<T: 'static+WebDriverHandler>(address: SocketAddr, handler: T) {

let api = WebDriverHttpApi::new();
let http_handler = HttpHandler::new(api, msg_send);
let server = Server::http(http_handler);
let server = Server::http(address).unwrap();

let builder = thread::Builder::new().name("webdriver dispatcher".to_string());
builder.spawn(move || {
let mut dispatcher = Dispatcher::new(handler);
dispatcher.run(msg_recv)
}).unwrap();
server.listen(&address).unwrap();
server.handle(http_handler).unwrap();
}

0 comments on commit 86abf0e

Please sign in to comment.