Skip to content

Commit 1034647

Browse files
authored
change to match[0]
1 parent 357b9d1 commit 1034647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/http/cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def request_path(request):
658658
def request_port(request):
659659
match = cut_port_re.search(request.host)
660660
if match:
661-
port = match.group(0).removeprefix(':')
661+
port = match[0].removeprefix(':')
662662
try:
663663
int(port)
664664
except ValueError:

0 commit comments

Comments
 (0)