summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy.py b/pastepy.py
index 3c919a4..23eb40e 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -214,7 +214,7 @@ class Paste(object):
self.start_response('404 Not Found', [('Content-Type', 'text/html; charset=utf-8'), ('Location', '/')])
return ['<a href="/">asdf</a>']
self.start_response('200 OK', [('Content-Type', mimetypes.guess_type(filename)[0] or 'text/plain; charset=utf-8')])
- return open(filename)
+ return open(filename, 'rb')
def __call__(self, environ, start_response):
self.environ = environ