mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix sendfile option validation
sendfile option don't set any default for now which makes the validation fail (and then tests) since no boolean is given. For now just return when the value is not set.
This commit is contained in:
parent
94c6dfe202
commit
9730978782
@ -281,6 +281,9 @@ Setting = SettingMeta('Setting', (Setting,), {})
|
||||
|
||||
|
||||
def validate_bool(val):
|
||||
if val is None:
|
||||
return
|
||||
|
||||
if isinstance(val, bool):
|
||||
return val
|
||||
if not isinstance(val, six.string_types):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user