Opened 3 years ago
Closed 3 years ago
#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 )
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 , 3 years ago
| Description: | modified (diff) | 
|---|
comment:2 by , 3 years ago
| Summary: | PUT/PATCH data is not encoded for multipart/form-data in Django Test → PUT/PATCH data is not encoded for multipart/form-data in Django Test Client | 
|---|
comment:3 by , 3 years ago
| Resolution: | → duplicate | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
Yes, it's intentional. Duplicate of #12635 (see comments and related discussions for more details.)