Skip to content

Commit

Permalink
fix sendfile option validation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
benoitc committed Dec 28, 2015
1 parent 94c6dfe commit 9730978
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gunicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9730978

Please sign in to comment.