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

Method return_ok_port

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

Source from the content-addressed store, hash-verified

1146 return True
1147
1148 def return_ok_port(self, cookie, request):
1149 if cookie.port:
1150 req_port = request_port(request)
1151 if req_port is None:
1152 req_port = "80"
1153 for p in cookie.port.split(","):
1154 if p == req_port:
1155 break
1156 else:
1157 _debug(" request port %s does not match cookie port %s",
1158 req_port, cookie.port)
1159 return False
1160 return True
1161
1162 def return_ok_domain(self, cookie, request):
1163 req_host, erhn = eff_request_host(request)

Callers

nothing calls this directly

Calls 3

request_portFunction · 0.85
_debugFunction · 0.85
splitMethod · 0.45

Tested by

no test coverage detected