From a2ab607ffa5b382d559150a33ac7a8059e9ee599 Mon Sep 17 00:00:00 2001 From: gustavo Date: Fri, 25 Aug 2023 15:49:13 -0300 Subject: [PATCH] pscanrules: Use constant instead of string for content-type in tests Signed-off-by: gustavo --- .../pscanrules/CsrfCountermeasuresScanRuleUnitTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addOns/pscanrules/src/test/java/org/zaproxy/zap/extension/pscanrules/CsrfCountermeasuresScanRuleUnitTest.java b/addOns/pscanrules/src/test/java/org/zaproxy/zap/extension/pscanrules/CsrfCountermeasuresScanRuleUnitTest.java index 2b61b6d5576..6789adf24c8 100644 --- a/addOns/pscanrules/src/test/java/org/zaproxy/zap/extension/pscanrules/CsrfCountermeasuresScanRuleUnitTest.java +++ b/addOns/pscanrules/src/test/java/org/zaproxy/zap/extension/pscanrules/CsrfCountermeasuresScanRuleUnitTest.java @@ -441,7 +441,7 @@ public boolean isInScope() { } }; newMsg.getRequestHeader().setURI(new URI("http://", "localhost", "/", "")); - newMsg.getResponseHeader().setHeader("Content-type", "text/html"); + newMsg.getResponseHeader().setHeader(HttpHeader.CONTENT_TYPE, "text/html"); newMsg.setResponseBody( "" + "
"