You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by be...@apache.org on 2021/09/18 13:33:53 UTC

[tapestry-5] 02/02: TAP5-2639: TestableResponseImpl#clear should clear internal fields

This is an automated email from the ASF dual-hosted git repository.

benw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 4f69a6d617782ee6b60544ec0c1833e4b961b809
Author: Benjamin Weidig <be...@netzgut.net>
AuthorDate: Sat Sep 18 15:32:49 2021 +0200

    TAP5-2639: TestableResponseImpl#clear should clear internal fields
---
 .../java/org/apache/tapestry5/internal/test/TestableResponseImpl.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/test/TestableResponseImpl.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/test/TestableResponseImpl.java
index a241240..532e0e1 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/test/TestableResponseImpl.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/test/TestableResponseImpl.java
@@ -171,6 +171,8 @@ public class TestableResponseImpl implements TestableResponse
         link = null;
         renderedDocument = null;
         headers.clear();
+        redirectURL = null;
+        printWriter = null;
         status = HttpServletResponse.SC_OK;
         errorMessage = null;
         contentLength = 0;