changeset 4224:31fb12b2deb5

Fixed: small errors in send_file
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 16 Jul 2008 17:07:53 +0200
parents bb25a59b5542
children 54b6f63ae411
files MoinMoin/web/contexts.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/contexts.py	Tue Jul 15 20:05:15 2008 +0200
+++ b/MoinMoin/web/contexts.py	Wed Jul 16 17:07:53 2008 +0200
@@ -182,7 +182,7 @@
         def simple_wrapper(fileobj, bufsize):
             return iter(lambda: fileobj.read(bufsize), '')
         file_wrapper = self.environ.get('wsgi.file_wrapper', simple_wrapper)
-        self.response = file_wrapper(request._send_file, request._send_bufsize)
+        self.request.response = file_wrapper(fileobj, bufsize)
         raise MoinMoinFinish('sent file')
 
     def read(self, n=None):