RFC 2965, section 3.3.6: An unverifiable transaction is to a third-party host if its request- host U does not domain-match the reach R of the request-host O in the origin transaction.
(request)
| 724 | return h |
| 725 | |
| 726 | def is_third_party(request): |
| 727 | """ |
| 728 | |
| 729 | RFC 2965, section 3.3.6: |
| 730 | |
| 731 | An unverifiable transaction is to a third-party host if its request- |
| 732 | host U does not domain-match the reach R of the request-host O in the |
| 733 | origin transaction. |
| 734 | |
| 735 | """ |
| 736 | req_host = request_host(request) |
| 737 | if not domain_match(req_host, reach(request.origin_req_host)): |
| 738 | return True |
| 739 | else: |
| 740 | return False |
| 741 | |
| 742 | |
| 743 | class Cookie: |
no test coverage detected