Fix argument to disable sendfile

This commit is contained in:
Toby Sullivan 2015-04-28 16:50:25 -07:00 committed by Randall Leeds
parent 2e0eb074fe
commit 11ee135b40

View File

@ -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):