Skip to content

Commit

Permalink
Merge pull request #1178 from tuco86/master
Browse files Browse the repository at this point in the history
Fix NameError fileno in gunicorn.http.wsgi
  • Loading branch information
berkerpeksag committed Jan 4, 2016
2 parents eabe7da + 2fe4ad7 commit 0ba74cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gunicorn/http/wsgi.py
Expand Up @@ -353,7 +353,9 @@ def sendfile(self, respiter):
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:
Expand Down

0 comments on commit 0ba74cf

Please sign in to comment.