summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'}