1
0
mirror of https://github.com/django/django.git synced 2024-12-26 19:16:11 +00:00

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

View File

@ -623,7 +623,7 @@ class AdminMediaHandler:
output = ['Page not found: %s' % file_path] output = ['Page not found: %s' % file_path]
else: else:
try: try:
fp = open(file_path, 'r') fp = open(file_path, 'rb')
except IOError: except IOError:
status = '401 UNAUTHORIZED' status = '401 UNAUTHORIZED'
headers = {'Content-type': 'text/plain'} headers = {'Content-type': 'text/plain'}