(self, flow: http.HTTPFlow)
| 633 | ) |
| 634 | |
| 635 | def request(self, flow: http.HTTPFlow): |
| 636 | if not flow.live or flow.error or flow.response: |
| 637 | return |
| 638 | # Check if a request has a magic CRL token at the end |
| 639 | if flow.request.path.endswith(self.crl_path()): |
| 640 | flow.response = http.Response.make( |
| 641 | 200, |
| 642 | self.certstore.default_crl, |
| 643 | {"Content-Type": "application/pkix-crl"}, |
| 644 | ) |
| 645 | |
| 646 | |
| 647 | def _ip_or_dns_name(val: str) -> x509.GeneralName: |