1
0
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:
Russell Keith-Magee
2010-01-23 17:26:56 +00:00
parent 3df1a16c79
commit e71b10efb7
3 changed files with 7 additions and 1 deletions

View File

@@ -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':