mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix http.wsgi.Response.sendfile
This commit is contained in:
parent
eabe7da84f
commit
2fe4ad72ca
@ -353,7 +353,9 @@ class Response(object):
|
||||
if self.cfg.is_ssl or not self.can_sendfile():
|
||||
return False
|
||||
|
||||
if not util.has_fileno(respiter.filelike):
|
||||
if util.has_fileno(respiter.filelike):
|
||||
fileno = respiter.filelike.fileno()
|
||||
else:
|
||||
return False
|
||||
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user