You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by re...@apache.org on 2023/04/05 08:35:37 UTC

[wicket] branch reiern70/WICKET-7028 created (now f5e01f33c2)

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

reiern70 pushed a change to branch reiern70/WICKET-7028
in repository https://gitbox.apache.org/repos/asf/wicket.git


      at f5e01f33c2 [WICKET-7028] move generation of CSP related header(s) to onRequestHandlerExecuted

This branch includes the following new commits:

     new f5e01f33c2 [WICKET-7028] move generation of CSP related header(s) to onRequestHandlerExecuted

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[wicket] 01/01: [WICKET-7028] move generation of CSP related header(s) to onRequestHandlerExecuted

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reiern70 pushed a commit to branch reiern70/WICKET-7028
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit f5e01f33c24ae68fcf457e152e3fdf51cdd39fff
Author: reiern70 <re...@gmail.com>
AuthorDate: Wed Apr 5 11:35:23 2023 +0300

    [WICKET-7028] move generation of CSP related header(s) to onRequestHandlerExecuted
---
 .../src/main/java/org/apache/wicket/csp/CSPRequestCycleListener.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wicket-core/src/main/java/org/apache/wicket/csp/CSPRequestCycleListener.java b/wicket-core/src/main/java/org/apache/wicket/csp/CSPRequestCycleListener.java
index 77853a9a82..cfd83f3137 100644
--- a/wicket-core/src/main/java/org/apache/wicket/csp/CSPRequestCycleListener.java
+++ b/wicket-core/src/main/java/org/apache/wicket/csp/CSPRequestCycleListener.java
@@ -31,7 +31,7 @@ import org.apache.wicket.request.http.WebResponse;
  */
 public class CSPRequestCycleListener implements IRequestCycleListener
 {
-	private ContentSecurityPolicySettings settings;
+	private final ContentSecurityPolicySettings settings;
 
 	public CSPRequestCycleListener(ContentSecurityPolicySettings settings)
 	{
@@ -39,7 +39,7 @@ public class CSPRequestCycleListener implements IRequestCycleListener
 	}
 
 	@Override
-	public void onRequestHandlerResolved(RequestCycle cycle, IRequestHandler handler)
+	public void onRequestHandlerExecuted(RequestCycle cycle, IRequestHandler handler)
 	{
 		if (!mustProtect(handler) || !(cycle.getResponse() instanceof WebResponse))
 		{