🐛 Bug Report
Consider the function hsts_check() in pshtt/pshtt.py. It's not just a bad hostname that should cause the HSTS header to be ignored. It is also ignored if the certificate is untrusted, for example. (See item 2 in the RFC.) Therefore I think that this if clause should be fleshed out a little more.
We should be a little careful when making this change, since as @echudow pointed out in a separate pull request:
Currently we don't check that the certificate is trusted even on the initial response, so that change could have more negative effects on the results.