Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the status code for the canonical endpoint, if live. #231

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pshtt/pshtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"HTTPS Client Auth Required",
"Redirect",
"Redirect To",
"Status",
"Valid HTTPS",
"HTTPS Publicly Trusted",
"HTTPS Custom Truststore Trusted",
Expand Down Expand Up @@ -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),
Expand Down