Skip to content

Commit

Permalink
Add a versionadded directive to the sendfile documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag committed Oct 20, 2014
1 parent 2f226ac commit c152ce0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/source/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,16 @@ speed up server boot times. Although, if you defer application loading
to each worker process, you can reload your application code easily by
restarting workers.

sendfile
~~~~~~~~

* ``--sendfile``
* ``True``

Enables or disables the use of ``sendfile()``.

.. versionadded:: 19.2

chdir
~~~~~

Expand Down
4 changes: 3 additions & 1 deletion gunicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,9 @@ class Sendfile(Setting):
action = "store_true"
default = True
desc = """\
Enables or disables the use of sendfile().
Enables or disables the use of ``sendfile()``.
.. versionadded:: 19.2
"""

class Chdir(Setting):
Expand Down

1 comment on commit c152ce0

@benoitc
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Please sign in to comment.