#34522 closed Bug (duplicate)

PUT/PATCH data is not encoded for multipart/form-data in Django Test Client

Reported by: Matej Mijoski Owned by: nobody
Component: Testing framework Version: 4.2
Severity: Normal Keywords: multipart form data, tests, put data encoding
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Matej Mijoski)

I've noticed that when making a request using the Django test client with a multipart/form-data content type, the data only gets encoded for POST requests. Is intentional and if so, why?

Change History (3)

comment:1 by Matej Mijoski, 20 months ago

Description: modified (diff)

comment:2 by Matej Mijoski, 20 months ago

Summary: PUT/PATCH data is not encoded for multipart/form-data in Django TestPUT/PATCH data is not encoded for multipart/form-data in Django Test Client

comment:3 by Mariusz Felisiak, 20 months ago

Resolution: duplicate
Status: newclosed

Yes, it's intentional. Duplicate of #12635 (see comments and related discussions for more details.)

Note: See TracTickets for help on using tickets.
Back to Top