def get_content_type(self):
"""
Returns the ``Content-Type`` header to be used for this request.
"""
# Add MIME types support used here
mimetypes.add_type("application/fits", ".fits")
mimetypes.add_type("text/plain", ".conf")
return super().get_content_type()
评论列表
文章目录