Skip to content

Commit

Permalink
Merge pull request #1168 from benoitc/fix-config-test
Browse files Browse the repository at this point in the history
fix sendfile option validation
  • Loading branch information
benoitc committed Dec 28, 2015
2 parents 94c6dfe + 9730978 commit 960d5ef
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 960d5ef

Please sign in to comment.