From de68253e20353a2e0894b1d4dee8dbb6632c9433 Mon Sep 17 00:00:00 2001 From: Eric Mill Date: Sun, 13 Nov 2022 22:05:44 -0500 Subject: [PATCH] Add the status code for the canonical endpoint, if live. --- src/pshtt/pshtt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pshtt/pshtt.py b/src/pshtt/pshtt.py index 342a910c..b0fc44d0 100644 --- a/src/pshtt/pshtt.py +++ b/src/pshtt/pshtt.py @@ -54,6 +54,7 @@ "HTTPS Client Auth Required", "Redirect", "Redirect To", + "Status", "Valid HTTPS", "HTTPS Publicly Trusted", "HTTPS Custom Truststore Trusted", @@ -144,6 +145,7 @@ def result_for(domain): "Live": is_live(domain), "Redirect": is_redirect_domain(domain), "Redirect To": redirects_to(domain), + "Status": domain.canonical.status, "HTTPS Live": is_https_live(domain), "HTTPS Full Connection": is_full_connection(domain), "HTTPS Client Auth Required": is_client_auth_required(domain),