mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1168 from benoitc/fix-config-test
fix sendfile option validation
This commit is contained in:
commit
960d5ef7cc
@ -281,6 +281,9 @@ Setting = SettingMeta('Setting', (Setting,), {})
|
|||||||
|
|
||||||
|
|
||||||
def validate_bool(val):
|
def validate_bool(val):
|
||||||
|
if val is None:
|
||||||
|
return
|
||||||
|
|
||||||
if isinstance(val, bool):
|
if isinstance(val, bool):
|
||||||
return val
|
return val
|
||||||
if not isinstance(val, six.string_types):
|
if not isinstance(val, six.string_types):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user