From c6e4b232c275b2f0da5d3f88d4ca708319eead0c Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 29 Aug 2005 21:48:32 +0000 Subject: [PATCH] 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 --- django/core/servers/basehttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}