From 973097878228312a94da14f09588eed99a5bcba1 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Mon, 28 Dec 2015 14:00:28 +0100 Subject: [PATCH] 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. --- gunicorn/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gunicorn/config.py b/gunicorn/config.py index 64c12d077..75e4c7cf1 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -281,6 +281,9 @@ def __lt__(self, other): def validate_bool(val): + if val is None: + return + if isinstance(val, bool): return val if not isinstance(val, six.string_types):