def get_mimetype(self):
template_name = self.get_template_names()[<NUM_LIT:0>]<EOL>for extension, mimetype in turrentine_settings.TURRENTINE_MIMETYPE_EXTENSIONS:<EOL><INDENT>if template_name.endswith(extension):<EOL><INDENT>return mimetype<EOL><DEDENT><DEDENT>return '<STR_LIT>'<EOL>
Use the ending of the template name to infer response's Content-Type header.