Skip to content

Commit

Permalink
don't guard the parameters here, would disable someone setting them to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeis committed Mar 9, 2016
1 parent 7308f86 commit f0c63e0
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,8 @@ public void boot() {
handler.setContextPath("/");
handler.addServlet(DriverServlet.class, "/wd/hub/*");

if (browserTimeout > 0) {
handler.setInitParameter(DriverServlet.BROWSER_TIMEOUT_PARAMETER, String.valueOf(browserTimeout));
}
if (sessionTimeout > 0) {
handler.setInitParameter(DriverServlet.SESSION_TIMEOUT_PARAMETER, String.valueOf(sessionTimeout));
}
handler.setInitParameter(DriverServlet.BROWSER_TIMEOUT_PARAMETER, String.valueOf(browserTimeout));
handler.setInitParameter(DriverServlet.SESSION_TIMEOUT_PARAMETER, String.valueOf(sessionTimeout));

addRcSupport(handler);

Expand Down

0 comments on commit f0c63e0

Please sign in to comment.