Changeset 8666
- Timestamp:
- 08/28/08 11:18:32 (3 months ago)
- Files:
-
- django/trunk/django/http/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/http/__init__.py
r8490 r8666 53 53 # Reconstruct the host using the algorithm from PEP 333. 54 54 host = self.META['SERVER_NAME'] 55 server_port = s elf.META['SERVER_PORT']56 if server_port != (self.is_secure() and 443 or 80):55 server_port = str(self.META['SERVER_PORT']) 56 if server_port != (self.is_secure() and '443' or '80'): 57 57 host = '%s:%s' % (host, server_port) 58 58 return host
