Changes between Initial Version and Version 1 of Ticket #2782
- Timestamp:
- Sep 26, 2006, 10:48:20 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2782 – Description
initial v1 1 SeemsI have found small bug in core/handlers/modpython.py.1 I have found small bug in core/handlers/modpython.py. 2 2 3 Namely request.META [ "SERVER_PORT" ]under mod_python is always set to 0.3 Namely, {{{request.META["SERVER_PORT"]}}} under mod_python is always set to 0. 4 4 5 This is because its set to self._req.server.port in modpython.py line 6 88. 5 This is because it's set to {{{self._req.server.port}}} in modpython.py, on line 88. 7 6 8 mod_python's docs say 9 (http://www.modpython.org/live/current/doc-html/pyapi-mpsrv-mem.html#l... 7 mod_python's [http://www.modpython.org/live/current/doc-html/pyapi-mpsrv-mem.html#l docs say] -- 10 8 9 {{{ 11 10 port 12 11 Integer. TCP/IP port number. Same as CGI SERVER_PORT. This member 13 12 appears to be 0 on Apache 2.0, look at req.connection.local_addr 14 instead (Read-Only 13 instead (Read-Only) 14 }}} 15 15 16 16 So I think it should be: 17 'SERVER_PORT': str(self._req.connection.local_addr [ 1 ]), 17 {{{ 18 'SERVER_PORT': str(self._req.connection.local_addr[1]), 19 }}} 18 20 19 Because self._req.connection.local_addr [ 1 ] is an integer I think it 20 should be string as other headers are. 21 Because {{{self._req.connection.local_addr[1]}}} is an integer, I think it should be string as other headers are.