On Thu, 2006-09-21 at 00:11 -0700, skink wrote: > Seems I have found small bug in core/handlers/modpython.py. > > Namely request.META["SERVER_PORT"] under apache 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#l2h-174): > > 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.
Can you please file a Trac ticket for this so that it does get lost. Thanks, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---