You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by pa...@apache.org on 2019/06/04 09:25:14 UTC
[sling-org-apache-sling-engine] 02/02: SLING-8469: use resetBuffer
instead of reset in SlingRequestDispatcher.
This is an automated email from the ASF dual-hosted git repository.
pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git
commit 1b08136dcfac79c3d86a7a6f9a6a692acc575596
Author: Karl Pauls <ka...@gmail.com>
AuthorDate: Tue Jun 4 11:24:57 2019 +0200
SLING-8469: use resetBuffer instead of reset in SlingRequestDispatcher.
---
.../org/apache/sling/engine/impl/request/SlingRequestDispatcher.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 @@ public class SlingRequestDispatcher implements RequestDispatcher {
// 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 @@ public class SlingRequestDispatcher implements RequestDispatcher {
}
}
-}
\ No newline at end of file
+}