Opened 12 years ago
Closed 12 years ago
#18552 closed Uncategorized (needsinfo)
Django test client should not use MULTIPART_CONTENT for POST-requests by default.
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | k_bx | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently, there's this code in django test client:
def post(self, path, data={}, content_type=MULTIPART_CONTENT,
extra):
That caused me to find another bug, related to multipart content :)
Change History (3)
comment:1 by , 12 years ago
Cc: | added |
---|
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
I don't see how this is a problem either.
Note:
See TracTickets
for help on using tickets.
Why shouldn't it send multipart content by default? I believe it makes it easier to send files, and changing might require lots of fixes to any test code that sends files.