Skip to content

AI junk - #6125

Closed
vo3pal wants to merge 1 commit into
pallets:mainfrom
vo3pal:codex/fix-ipv6-address-parsing
Closed

AI junk#6125
vo3pal wants to merge 1 commit into
pallets:mainfrom
vo3pal:codex/fix-ipv6-address-parsing

Conversation

@vo3pal

@vo3pal vo3pal commented Aug 9, 2026

Copy link
Copy Markdown

Fixes #6093

IPv6 literals contain colons, so partitioning server names at the first colon breaks session cookie handling and SERVER_NAME parsing. Use urlsplit for host and port parsing and add regression tests for IPv6 session transactions and app.run.

Tests:

  • PYTHONPATH=src python -m pytest tests/test_testing.py tests/test_basic.py -q (159 passed)
  • Full suite: 484 passed, 1 skipped; one environment-only failure because optional asgiref is not installed.

@davidism davidism changed the title Fix IPv6 server name parsing AI junk Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPv6 addresses parsed incorrectly because of .partition(":")?

1 participant