Opened 3 years ago

Closed 3 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


Currently, there's this code in django test client:

def post(self, path, data={}, content_type=MULTIPART_CONTENT,


That caused me to find another bug, related to multipart content :)

Change History (3)

comment:1 Changed 3 years ago by k_bx

  • Cc k_bx added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 3 years ago by lukeplant

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.

comment:3 Changed 3 years ago by aaugustin

  • Resolution set to needsinfo
  • Status changed from new to closed

I don't see how this is a problem either.

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