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

Method set_ok_path

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

Source from the content-addressed store, hash-verified

1003 return True
1004
1005 def set_ok_path(self, cookie, request):
1006 if cookie.path_specified:
1007 req_path = request_path(request)
1008 if ((cookie.version > 0 or
1009 (cookie.version == 0 and self.strict_ns_set_path)) and
1010 not self.path_return_ok(cookie.path, request)):
1011 _debug(" path attribute %s is not a prefix of request "
1012 "path %s", cookie.path, req_path)
1013 return False
1014 return True
1015
1016 def set_ok_domain(self, cookie, request):
1017 if self.is_blocked(cookie.domain):

Callers 1

Calls 3

path_return_okMethod · 0.95
request_pathFunction · 0.85
_debugFunction · 0.85

Tested by 1