﻿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
20038	Misleading port number in  'Invalid HTTP_HOST header' error message	wrr@…	nobody	"If port number is incorrectly included in the ALLOWED_HOSTS setting:


{{{
ALLOWED_HOSTS = ['foo.example.org:8080']
}}}


The raised exception suggests to set ALLOWED_HOSTS to the same incorrect value:


{{{
SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): foo.example.org:8080
}}}


It would be better for the exception to be thrown like this:


{{{
raise SuspiciousOperation(""Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): %s"" % host.rsplit(':', 1)[0])
}}}
"	Cleanup/optimization	closed	HTTP handling	1.5	Normal	fixed		wrr@… bmispelon@…	Accepted	1	0	0	0	0	0
