From 11ee135b40439259816b2764679249323a489ca9 Mon Sep 17 00:00:00 2001 From: Toby Sullivan Date: Tue, 28 Apr 2015 16:50:25 -0700 Subject: [PATCH] Fix argument to disable sendfile --- gunicorn/config.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index ae387d31..4c357aaf 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -820,14 +820,16 @@ class PreloadApp(Setting): class Sendfile(Setting): name = "sendfile" section = "Server Mechanics" - cli = ["--sendfile"] + cli = ["--no-sendfile"] validator = validate_bool - action = "store_true" + action = "store_false" default = True desc = """\ - Enables or disables the use of ``sendfile()``. + Disables the use of ``sendfile()``. .. versionadded:: 19.2 + .. versionchanged:: 19.4 + Swapped --sendfile with --no-sendfile to actually allow disabling """ class Chdir(Setting):