diff options
| author | Mark Jones <mark0978@gmail.com> | 2016-08-17 11:58:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-17 11:58:12 -0500 |
| commit | ddc0ee35b2bf954c8d4b0a69cea3cf0f4f477e10 (patch) | |
| tree | 9bf17286e64591c7301e9eab4b61da16dcb954c2 | |
| parent | e4183b2378acd85fee5ec71d281b3e8e6c2de323 (diff) | |
| download | pyramid-ddc0ee35b2bf954c8d4b0a69cea3cf0f4f477e10.tar.gz pyramid-ddc0ee35b2bf954c8d4b0a69cea3cf0f4f477e10.tar.bz2 pyramid-ddc0ee35b2bf954c8d4b0a69cea3cf0f4f477e10.zip | |
Clarify that headers are ADDED to the response
Make it clear that headers are added to the response instead of overwriting existing headers. Explain how to set the content_type instead of just assuming they will know.
| -rw-r--r-- | pyramid/httpexceptions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py index e76f43c8a..b44227fc5 100644 --- a/pyramid/httpexceptions.py +++ b/pyramid/httpexceptions.py @@ -98,7 +98,9 @@ be forwarded to its :class:`~pyramid.response.Response` superclass: a plain-text override of the default ``detail`` ``headers`` - a list of (k,v) header pairs + a list of (k,v) header pairs or a dict to be added to the + response, use content_type='application/json' kwarg to change + the content type of the response. ``comment`` a plain-text additional information which is |
