﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32601	Optimize split_domain_port() by leveraging the regex	Chris Jerdonek	nobody	"I noticed that almost all of the pure Python can be removed from Django's `split_domain_port()` function:
https://github.com/django/django/blob/2f13c476abe4ba787b6cb71131818341911f43cc/django/http/request.py#L643-L650
by modifying the `host_validation_re` regex slightly and then accessing it via its groups:
https://github.com/django/django/blob/2f13c476abe4ba787b6cb71131818341911f43cc/django/http/request.py#L26
Currently, the function uses the regex to determine if there's a match, and then uses pure Python to reparse out the components (work which the regex has already done for the most part).

I can do this once accepted.
"	Cleanup/optimization	closed	HTTP handling	dev	Normal	duplicate	split_domain_port,regex		Unreviewed	0	0	0	0	0	0
