fix method call.

This commit is contained in:
benoitc 2014-10-19 18:06:51 +02:00
parent 2849147f8a
commit 2f226acda4

View File

@ -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()