#35062: Update csrf.py to check request.POST if request.method is not GET
-----------------------------+--------------------------------------
     Reporter:  Peter Jones  |                    Owner:  nobody
         Type:  Bug          |                   Status:  closed
    Component:  CSRF         |                  Version:  4.2
     Severity:  Normal       |               Resolution:  invalid
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  1            |                    UI/UX:  0
-----------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Thanks for this report, however if you're using a custom middleware to
 convert POST to PUT/PATCH/DELETE then you can also use your own
 `CsrfViewMiddleware` subclass to handle them. It doesn't need to be handle
 by Django itself. We don't usually include workarounds for niche edge
 cases.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35062#comment:1>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018c9fc0a0f5-365286f9-28ae-48f6-a08c-c4ba5795d9c2-000000%40eu-central-1.amazonses.com.

Reply via email to