From 2f226acda42bb4970490c4ff851ea5412d19904a Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 19 Oct 2014 18:06:51 +0200 Subject: [PATCH] fix method call. --- gunicorn/http/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index d9dbf442..0495067e 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -383,7 +383,7 @@ class Response(object): util.write(self.sock, data, self.chunked) def write_file(self, respiter): - if can_sendfile() and util.is_fileobject(respiter.filelike): + if self.can_sendfile() and util.is_fileobject(respiter.filelike): # sometimes the fileno isn't a callable if six.callable(respiter.filelike.fileno): fileno = respiter.filelike.fileno()