Ticket #9064: multiple_proxies.patch
File multiple_proxies.patch, 547 bytes (added by , 16 years ago) |
---|
-
trunk/django/http/__init__.py
old new 47 47 # We try three options, in order of decreasing preference. 48 48 if 'HTTP_X_FORWARDED_HOST' in self.META: 49 49 host = self.META['HTTP_X_FORWARDED_HOST'] 50 comma = host.find(',') 51 if comma > -1: 52 host = host[0:comma] 50 53 elif 'HTTP_HOST' in self.META: 51 54 host = self.META['HTTP_HOST'] 52 55 else: