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
This commit is contained in:
Adrian Holovaty 2005-08-29 21:48:32 +00:00
parent d80ac5ac25
commit c6e4b232c2
1 changed files with 1 additions and 1 deletions

View File

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