﻿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
2782	"mod_python's request.META[""SERVER_PORT""] is always set to 0"	anonymous	Adrian Holovaty	"Seems I have found small bug in core/handlers/modpython.py.

Namely request.META [ ""SERVER_PORT"" ] under mod_python is always set to 0.

This is because its set to self._req.server.port in modpython.py line
88.

mod_python's docs say
(http://www.modpython.org/live/current/doc-html/pyapi-mpsrv-mem.html#l...

port
    Integer. TCP/IP port number. Same as CGI SERVER_PORT. This member
appears to be 0 on Apache 2.0, look at req.connection.local_addr
instead (Read-Only

So I think it should be:
'SERVER_PORT':       str(self._req.connection.local_addr [ 1 ]),

Because self._req.connection.local_addr [ 1 ] is an integer I think it
should be string as other headers are. 
"	defect	new	Core (Other)		normal				Unreviewed	0	0	0	0	0	0
