mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix argument to disable sendfile
This commit is contained in:
parent
2e0eb074fe
commit
11ee135b40
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user