summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-03-30 05:42:47 -0400
committerChris McDonough <chrism@plope.com>2012-03-30 05:42:47 -0400
commit360f251a1765e53a15bec53c91068880f47e503f (patch)
tree31646cadc1aa05ee8dfacd39c2e17504ff0fdb42 /CHANGES.txt
parent1794b4b17482314bfc57285a71b78fce091870c3 (diff)
downloadpyramid-360f251a1765e53a15bec53c91068880f47e503f.tar.gz
pyramid-360f251a1765e53a15bec53c91068880f47e503f.tar.bz2
pyramid-360f251a1765e53a15bec53c91068880f47e503f.zip
- As of this release, the ``request_method`` predicate, when used, will also
imply that ``HEAD`` is implied when you use ``GET``. For example, using ``@view_config(request_method='GET')`` is equivalent to using ``@view_config(request_method='HEAD')``. Using ``@view_config(request_method=('GET', 'POST')`` is equivalent to using ``@view_config(request_method=('GET', 'HEAD', 'POST')``. This is because HEAD is a variant of GET that omits the body, and WebOb has special support to return an empty body when a HEAD is used.
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 9cddc01b5..f0fef62ea 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -17,3 +17,11 @@ Features
values natively serializable by ``json.dumps`` (such as ints, lists,
dictionaries, strings, and so forth).
+- As of this release, the ``request_method`` predicate, when used, will also
+ imply that ``HEAD`` is implied when you use ``GET``. For example, using
+ ``@view_config(request_method='GET')`` is equivalent to using
+ ``@view_config(request_method='HEAD')``. Using
+ ``@view_config(request_method=('GET', 'POST')`` is equivalent to using
+ ``@view_config(request_method=('GET', 'HEAD', 'POST')``. This is because
+ HEAD is a variant of GET that omits the body, and WebOb has special support
+ to return an empty body when a HEAD is used.