From 46ff32a9282cef98046b054191c7d4c9c9bdb909 Mon Sep 17 00:00:00 2001 From: Brenton Cleeland Date: Wed, 6 Mar 2024 07:39:59 +1100 Subject: [PATCH] fix: remove stray quote in check output. Fixed #30. --- ready/checks/html.py | 2 +- ready/ready.py | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ready/checks/html.py b/ready/checks/html.py index 356f380..71e0e78 100644 --- a/ready/checks/html.py +++ b/ready/checks/html.py @@ -59,7 +59,7 @@ def check_referrer_policy_should_be_set(responses, **kwargs): def check_x_xss_protection_should_not_exist(responses, **kwargs): return result( "x-xss-protection" not in responses["response"].headers, - f'X-XSS-Protection header should not exist" ({responses["response"].headers.get("x-xss-protection")})', + f'X-XSS-Protection header should not exist ({responses["response"].headers.get("x-xss-protection")})', "html_x_xss_protection_not_set", warn_on_fail=True, **kwargs, diff --git a/ready/ready.py b/ready/ready.py index 40227b0..3dbf78f 100644 --- a/ready/ready.py +++ b/ready/ready.py @@ -7,7 +7,7 @@ from importlib import resources from . import checks as checks_module -VERSION = "1.2.6" +VERSION = "1.2.7" from ready.checks.bad_response import ( check_bad_response_cloudflare, diff --git a/setup.cfg b/setup.cfg index 0d142c1..cfa0dd3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = ready-check -version = 1.2.6 +version = 1.2.7 author = Brenton Cleeland author_email = brenton@brntn.me description = A developer-friendly web scanning tool