You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/05/09 17:44:49 UTC
[tomcat] branch main updated: Fix test to use non-deprecated code
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 768939c091 Fix test to use non-deprecated code
768939c091 is described below
commit 768939c091ea0a925f73ea1b9fef52868aedd897
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon May 9 18:44:41 2022 +0100
Fix test to use non-deprecated code
---
test/org/apache/catalina/filters/TestRestCsrfPreventionFilter.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/org/apache/catalina/filters/TestRestCsrfPreventionFilter.java b/test/org/apache/catalina/filters/TestRestCsrfPreventionFilter.java
index 2cdc7c3169..633e1d533a 100644
--- a/test/org/apache/catalina/filters/TestRestCsrfPreventionFilter.java
+++ b/test/org/apache/catalina/filters/TestRestCsrfPreventionFilter.java
@@ -22,6 +22,7 @@ import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
+import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;
@@ -61,7 +62,7 @@ public class TestRestCsrfPreventionFilter {
public void setUp() {
filter = new RestCsrfPreventionFilter() {
@Override
- protected String generateNonce() {
+ protected String generateNonce(HttpServletRequest request) {
return NONCE;
}
};
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org