#3526: HttpResponse object should have 'content_type' argument (in additon to /
instead of 'mimetype')
------------------------------+---------------------------------------------
Reporter: Simon Willison | Owner: adrian
Status: new | Component: Core framework
Version: SVN | Resolution:
Keywords: httpresponse | Stage: Accepted
Has_patch: 1 | Needs_docs: 1
Needs_tests: 1 | Needs_better_patch: 0
------------------------------+---------------------------------------------
Changes (by mtredinnick):
* stage: Design decision needed => Accepted
Comment:
This looks reasonable. However, isn't the patch broken? If you pass in
mimetype, but not content_type, then lines 162 and 163 will stomp all over
line 161 in the new version. Looks like 163 should be "elif". Otherwise,
looks like the right idea.
--
Ticket URL: <http://code.djangoproject.com/ticket/3526#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---