diff --git a/uni-resolver-web/src/main/java/uniresolver/web/servlet/ResolveServlet.java b/uni-resolver-web/src/main/java/uniresolver/web/servlet/ResolveServlet.java index 50480078f..024e83866 100644 --- a/uni-resolver-web/src/main/java/uniresolver/web/servlet/ResolveServlet.java +++ b/uni-resolver-web/src/main/java/uniresolver/web/servlet/ResolveServlet.java @@ -36,11 +36,11 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t String servletPath = request.getServletPath(); String requestPath = request.getRequestURI(); + if (log.isDebugEnabled()) log.debug("Incoming resolve request: " + requestPath); + String path = requestPath.substring(contextPath.length() + servletPath.length()); if (path.startsWith("/")) path = path.substring(1); - if (log.isDebugEnabled()) log.debug("Incoming resolve request: " + requestPath); - if (path.isEmpty()) { ServletUtil.sendResponse(response, HttpServletResponse.SC_BAD_REQUEST, "No identifier found in resolve request."); return;