Update toString() method in DefaultRequiresCsrfMatcher to better reflect its logic during trace-level logging. Closes gh-17250 Signed-off-by: Deep Dhamala <dhamaladeep2@gmail.com>
@@ -214,7 +214,7 @@ public final class CsrfFilter extends OncePerRequestFilter {
@Override
public String toString() {
- return "CsrfNotRequired " + this.allowedMethods;
+ return "IsNotHttpMethod " + this.allowedMethods;
}