Chris McDonough
2012-03-30 360f251a1765e53a15bec53c91068880f47e503f
refs
author Chris McDonough <chrism@plope.com>
Friday, March 30, 2012 11:42 +0200
committer Chris McDonough <chrism@plope.com>
Friday, March 30, 2012 11:42 +0200
commit360f251a1765e53a15bec53c91068880f47e503f
tree 31646cadc1aa05ee8dfacd39c2e17504ff0fdb42 tree | zip | gz
parent 1794b4b17482314bfc57285a71b78fce091870c3 view | diff
- 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.
3 files modified
24 ■■■■■ changed files
CHANGES.txt 8 ●●●●● diff | view | raw | blame | history
pyramid/config/views.py 6 ●●●● diff | view | raw | blame | history
pyramid/tests/test_config/test_views.py 10 ●●●●● diff | view | raw | blame | history