MCPcopy Index your code
hub / github.com/python/cpython / set_ok_verifiability

Method set_ok_verifiability

Lib/http/cookiejar.py:984–994  ·  view source on GitHub ↗
(self, cookie, request)

Source from the content-addressed store, hash-verified

982 return True
983
984 def set_ok_verifiability(self, cookie, request):
985 if request.unverifiable and is_third_party(request):
986 if cookie.version > 0 and self.strict_rfc2965_unverifiable:
987 _debug(" third-party RFC 2965 cookie during "
988 "unverifiable transaction")
989 return False
990 elif cookie.version == 0 and self.strict_ns_unverifiable:
991 _debug(" third-party Netscape cookie during "
992 "unverifiable transaction")
993 return False
994 return True
995
996 def set_ok_name(self, cookie, request):
997 # Try and stop servers setting V0 cookies designed to hack other

Callers

nothing calls this directly

Calls 2

is_third_partyFunction · 0.85
_debugFunction · 0.85

Tested by

no test coverage detected