Skip to content

Commit

Permalink
pscanrules: Use constant instead of string for content-type in tests
Browse files Browse the repository at this point in the history
Signed-off-by: gustavo <[email protected]>
  • Loading branch information
gustavocovas committed Aug 25, 2023
1 parent 4c385ce commit a2ab607
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"<html><head></head><body>"
+ "<form name=\"someName\" data-no-csrf><input type=\"text\" name=\"name\"/><input type=\"submit\"/></form>"
Expand Down

0 comments on commit a2ab607

Please sign in to comment.