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 6bc8c4e018..98199a384d 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; }