Ticket #4416: httpresponse503.patch
File httpresponse503.patch, 531 bytes (added by , 17 years ago) |
---|
-
django/http/__init__.py
304 304 def __init__(self, *args, **kwargs): 305 305 HttpResponse.__init__(self, *args, **kwargs) 306 306 307 class HttpResponseServiceUnavailable(HttpResponse): 308 status_code = 503 309 307 310 def get_host(request): 308 311 "Gets the HTTP host from the environment or request headers." 309 312 host = request.META.get('HTTP_X_FORWARDED_HOST', '')