mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Added color configuration for HTTP 304, since it doesn't require as much attention as other 3XX codes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -619,6 +619,8 @@ class WSGIRequestHandler(BaseHTTPRequestHandler):
|
||||
msg = self.style.HTTP_SUCCESS(msg)
|
||||
elif args[1][0] == '1':
|
||||
msg = self.style.HTTP_INFO(msg)
|
||||
elif args[1] == '304':
|
||||
msg = self.style.HTTP_NOT_MODIFIED(msg)
|
||||
elif args[1][0] == '3':
|
||||
msg = self.style.HTTP_REDIRECT(msg)
|
||||
elif args[1] == '404':
|
||||
|
||||
Reference in New Issue
Block a user