mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix should_close. not really useful in gunicorn case but then we are in
sync with restkit
This commit is contained in:
parent
6df6e89cbc
commit
d91939f110
@ -105,12 +105,13 @@ class Parser(object):
|
||||
def should_close(self):
|
||||
if self._should_close:
|
||||
return True
|
||||
if self.headers_dict.get("Connection") == "close":
|
||||
elif self.headers_dict.get("Connection") == "close":
|
||||
return True
|
||||
if self.headers_dict.get("Connection") == "Keep-Alive":
|
||||
elif self.headers_dict.get("Connection") == "Keep-Alive":
|
||||
return False
|
||||
if int("%s%s" % self.version) < 11:
|
||||
elif self.version < (1,0):
|
||||
return True
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_chunked(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user