Merge remote-tracking branch 'origin/jetty-9.2.x' into jetty-9.3.x
This commit is contained in:
commit
9e74080f8b
|
@ -424,7 +424,7 @@ public class ServletContextHandler extends ContextHandler
|
|||
*/
|
||||
public ServletHolder addServlet(Class<? extends Servlet> servlet,String pathSpec)
|
||||
{
|
||||
return getServletHandler().addServletWithMapping(servlet.getName(), pathSpec);
|
||||
return getServletHandler().addServletWithMapping(servlet, pathSpec);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
|
Loading…
Reference in New Issue