changeset 4225:54b6f63ae411

Removed old send_file code which was ported from request_wsgi
author Florian Krupicka <florian.krupicka@googlemail.com>
date Wed, 16 Jul 2008 17:10:01 +0200
parents 31fb12b2deb5
children b2df0c84140f
files MoinMoin/wsgiapp.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wsgiapp.py	Wed Jul 16 17:07:53 2008 +0200
+++ b/MoinMoin/wsgiapp.py	Wed Jul 16 17:10:01 2008 +0200
@@ -201,12 +201,6 @@
 def application(request):
     run(init(request))
 
-    if getattr(request, '_send_file', None) is not None:
-        # moin wants to send a file (e.g. AttachFile.do_get)
-        def simple_wrapper(fileobj, bufsize):
-            return iter(lambda: fileobj.read(bufsize), '')
-        file_wrapper = request.environ.get('wsgi.file_wrapper', simple_wrapper)
-        request.response = file_wrapper(request._send_file, request._send_bufsize)
     return request
 
 application = Request.application(application)