﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
1504	Allow render_to_response() to take a content-type param	django@…	nobody	"Currently there is no way to pass the Content-Type header field while using render_to_response(). This means dropping down to using template_loader() and HttpResponse objects to handle this fairly trivial task.

A simple change to render_to_response() would allow the developer to pass that information along:

{{{
def render_to_response(*args, **kwargs):
    ctype = kwargs.pop('content_type', None)
    return HttpResponse(loader.render_to_string(*args, **kwargs), mimetype=c
type)
load_and_render = render_to_response # For backwards compatibility.
}}}

To use it, simply do:

{{{
    return render_to_response( 'imageview/gallery', content_dictionary,
        content_type = ""application/xhtml+xml; charset=%s"" % DEFAULT_CHARSET,
        context_instance = DjangoContext(request) )
}}}"	enhancement	closed	Template system	dev	normal	fixed	sprintsept14		Ready for checkin	1	0	0	0	0	0
