#15637: Add a require_safe decorator for views to accept GET or HEAD
-----------------------------------------+----------------------
               Reporter:  aaugustin      |        Owner:  nobody
                 Status:  new            |    Milestone:
              Component:  HTTP handling  |      Version:  SVN
             Resolution:                 |     Keywords:
           Triage Stage:  Accepted       |    Has patch:  1
    Needs documentation:  0              |  Needs tests:  0
Patch needs improvement:  1              |
-----------------------------------------+----------------------
Changes (by julien):

 * needs_better_patch:  0 => 1


Comment:

 The patch looks good but needs a few improvements. The doc should explain
 why the decorator is called `require_safe` (i.e. GET and HEAD methods are
 commonly referred to as "safe" methods), and the tests should actually
 check that the decorator actually only allows GET and HEAD requests.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15637#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to