Rename HttpResponse parameter mimetype to content_type
[htsworkflow.git] / htsworkflow / frontend / experiments / views.py
index 28a355f97271f65ba80d0e18502a03f55b93f652..38b0e98255a105ed22c13893df3eb62db154a69e 100644 (file)
@@ -177,13 +177,13 @@ def read_result_file(self, key):
     """
     data_file = get_object_or_404(DataFile, random_key = key)
 
-    mimetype = 'application/octet-stream'
+    content_type = 'application/octet-stream'
     if data_file.file_type.mimetype is not None:
-        mimetype = data_file.file_type.mimetype
+        content_type = data_file.file_type.mimetype
 
     if os.path.exists(data_file.pathname):
         return HttpResponse(open(data_file.pathname,'r'),
-                            mimetype=mimetype)
+                            content_type=content_type)
 
     raise Http404