mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
keep a consistent style
This commit is contained in:
parent
68cd6c3b05
commit
6dcd7a6ada
@ -353,11 +353,10 @@ class Response(object):
|
||||
if self.cfg.is_ssl or not self.can_sendfile():
|
||||
return False
|
||||
|
||||
if util.has_fileno(respiter.filelike):
|
||||
fileno = respiter.filelike.fileno()
|
||||
else:
|
||||
if not util.has_fileno(respiter.filelike):
|
||||
return False
|
||||
|
||||
fileno = respiter.filelike.fileno()
|
||||
try:
|
||||
offset = os.lseek(fileno, 0, os.SEEK_CUR)
|
||||
if self.response_length is None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user