Opened 4 years ago

Closed 4 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 Changed 4 years ago by k_bx

Cc: k_bx added

comment:2 Changed 4 years ago by Luke Plant

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 4 years ago by Aymeric Augustin

Resolution: needsinfo
Status: newclosed

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

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