mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 11:45:49 +01:00
added missing dependencies and response code
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
c07a5ddd9c
commit
bfd03fd889
@ -11,7 +11,9 @@ Import-Package:
|
||||
javax.servlet.http,
|
||||
org.apache.commons.io,
|
||||
org.eclipse.jdt.annotation;resolution:=optional,
|
||||
org.eclipse.jetty.server,
|
||||
org.eclipse.jetty.servlet,
|
||||
org.eclipse.jetty.util.resource,
|
||||
org.openhab.ui.dashboard,
|
||||
org.osgi.framework,
|
||||
org.osgi.service.cm,
|
||||
|
@ -72,6 +72,7 @@ public class RootServlet extends DefaultServlet {
|
||||
if (req.getRequestURI().equals("/")) {
|
||||
resp.sendRedirect("/start/index");
|
||||
} else if (!req.getRequestURI().startsWith("/static/")) {
|
||||
resp.sendError(HttpServletResponse.SC_NOT_FOUND);
|
||||
resp.setContentType("text/html;charset=UTF-8");
|
||||
resp.getWriter().append(page404);
|
||||
resp.getWriter().close();
|
||||
|
Loading…
Reference in New Issue
Block a user