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

Method set_ok_name

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

Source from the content-addressed store, hash-verified

994 return True
995
996 def set_ok_name(self, cookie, request):
997 # Try and stop servers setting V0 cookies designed to hack other
998 # servers that know both V0 and V1 protocols.
999 if (cookie.version == 0 and self.strict_ns_set_initial_dollar and
1000 cookie.name.startswith("$")):
1001 _debug(" illegal name (starts with '$'): '%s'", cookie.name)
1002 return False
1003 return True
1004
1005 def set_ok_path(self, cookie, request):
1006 if cookie.path_specified:

Callers

nothing calls this directly

Calls 2

_debugFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected