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