Skip to content

Commit 081c92a

Browse files
DeepDhamalajzheaux
authored andcommitted
Improve logging clarity in CsrfFilter
Update toString() method in DefaultRequiresCsrfMatcher to better reflect its logic during trace-level logging. Closes gh-17250 Signed-off-by: Deep Dhamala <[email protected]>
1 parent a22b2ff commit 081c92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/main/java/org/springframework/security/web/csrf/CsrfFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public boolean matches(HttpServletRequest request) {
214214

215215
@Override
216216
public String toString() {
217-
return "CsrfNotRequired " + this.allowedMethods;
217+
return "IsNotHttpMethod " + this.allowedMethods;
218218
}
219219

220220
}

0 commit comments

Comments
 (0)