summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-02-09 16:15:54 -0800
committerChris McDonough <chrism@plope.com>2013-02-09 16:15:54 -0800
commit0ffbfb41ce26984ccff2d5fadf22887f9fc04d88 (patch)
tree6a0554a3aa908ac23d836bb2c7eb885fdded176c
parent7fe736bf57696aa62c8b0d84e62ad486d0f88f40 (diff)
parent0928815fb0579658e405a6b63224fe098d37c133 (diff)
downloadpyramid-0ffbfb41ce26984ccff2d5fadf22887f9fc04d88.tar.gz
pyramid-0ffbfb41ce26984ccff2d5fadf22887f9fc04d88.tar.bz2
pyramid-0ffbfb41ce26984ccff2d5fadf22887f9fc04d88.zip
Merge pull request #855 from tshepang/FileResponse
remove the tedious/needless "if passed" phrases
-rw-r--r--pyramid/response.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyramid/response.py b/pyramid/response.py
index 1dccb7ae8..0f61af472 100644
--- a/pyramid/response.py
+++ b/pyramid/response.py
@@ -35,20 +35,20 @@ class FileResponse(Response):
``path`` is a file path on disk.
- ``request`` must be a Pyramid :term:`request` object if passed. Note
+ ``request`` must be a Pyramid :term:`request` object. Note
that a request *must* be passed if the response is meant to attempt to
use the ``wsgi.file_wrapper`` feature of the web server that you're using
to serve your Pyramid application.
- ``cache_max_age`` if passed, is the number of seconds that should be used
+ ``cache_max_age`` is the number of seconds that should be used
to HTTP cache this response.
- ``content_type``, if passed, is the content_type of the response.
+ ``content_type`` is the content_type of the response.
- ``content_encoding``, if passed is the content_encoding of the response.
+ ``content_encoding`` is the content_encoding of the response.
It's generally safe to leave this set to ``None`` if you're serving a
- binary file. This argument will be ignored if you don't also pass
- ``content-type``.
+ binary file. This argument will be ignored if you also leave
+ ``content-type`` as ``None``.
"""
def __init__(self, path, request=None, cache_max_age=None,
content_type=None, content_encoding=None):