summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-08-29 21:48:32 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-08-29 21:48:32 +0000
commitc6e4b232c275b2f0da5d3f88d4ca708319eead0c (patch)
tree3debe7faedf40e848fc8ecbda32977d25e74c309
parentd80ac5ac2517d02f9af87d8c8ea46bc376c51bc5 (diff)
Fixed #349 -- Fixed bug in development server admin media on Windows. Thanks, ibatugow@gmail.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/servers/basehttp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/servers/basehttp.py b/django/core/servers/basehttp.py
index 83112ac313..e7d6b98032 100644
--- a/django/core/servers/basehttp.py
+++ b/django/core/servers/basehttp.py
@@ -623,7 +623,7 @@ class AdminMediaHandler:
output = ['Page not found: %s' % file_path]
else:
try:
- fp = open(file_path, 'r')
+ fp = open(file_path, 'rb')
except IOError:
status = '401 UNAUTHORIZED'
headers = {'Content-type': 'text/plain'}