diff --git a/servlet/src/main/java/io/undertow/servlet/util/DispatchUtils.java b/servlet/src/main/java/io/undertow/servlet/util/DispatchUtils.java index 445554e6fe..4f78e6ca22 100644 --- a/servlet/src/main/java/io/undertow/servlet/util/DispatchUtils.java +++ b/servlet/src/main/java/io/undertow/servlet/util/DispatchUtils.java @@ -123,7 +123,7 @@ public static ServletPathMatch dispatchInclude(final String path, requestImpl.setAttribute(INCLUDE_CONTEXT_PATH, servletContext.getContextPath()); requestImpl.setAttribute(INCLUDE_SERVLET_PATH, pathMatch.getMatched()); requestImpl.setAttribute(INCLUDE_PATH_INFO, pathMatch.getRemaining()); - requestImpl.setAttribute(INCLUDE_MAPPING, pathMatch.getMappingMatch()); + requestImpl.setAttribute(INCLUDE_MAPPING, requestImpl.getHttpServletMapping()); return pathMatch; }