diff options
-rw-r--r-- | pastepy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |