SLING-8469: use resetBuffer instead of reset in SlingRequestDispatcher.
diff --git a/src/main/java/org/apache/sling/engine/impl/request/SlingRequestDispatcher.java b/src/main/java/org/apache/sling/engine/impl/request/SlingRequestDispatcher.java
index cd1b4a4..9f7924e 100644
--- a/src/main/java/org/apache/sling/engine/impl/request/SlingRequestDispatcher.java
+++ b/src/main/java/org/apache/sling/engine/impl/request/SlingRequestDispatcher.java
@@ -130,7 +130,7 @@
// reset the response, will throw an IllegalStateException
// if already committed, which will not be the case because
// we already tested for this condition
- response.reset();
+ response.resetBuffer();
// ensure inclusion information attributes are not set
request.removeAttribute(SlingConstants.ATTR_REQUEST_CONTENT);
@@ -278,4 +278,4 @@
}
}
-}
\ No newline at end of file
+}