Updated mime types of large files to prevent killing people's
authorBrandon King <kingb@caltech.edu>
Wed, 28 May 2008 21:15:48 +0000 (21:15 +0000)
committerBrandon King <kingb@caltech.edu>
Wed, 28 May 2008 21:15:48 +0000 (21:15 +0000)
web browsers. Not so fun the 2nd time it happens.

gaworkflow/frontend/fctracker/views.py

index 05358e969adb34335e9259a0e03fbc0756308f46..ad3937c9e68e0bda32a21c864f516cbd3cbb1b9d 100644 (file)
@@ -83,7 +83,7 @@ def result_fc_cnm_eland_lane(request, fc_id, cnm, lane):
     
     f = opener.autoopen(filepath, 'r')
     
-    return HttpResponse(f)
+    return HttpResponse(f, mimetype="application/x-elandresult")
 
 
 def bedfile_fc_cnm_eland_lane(request, fc_id, cnm, lane):
@@ -118,7 +118,7 @@ def bedfile_fc_cnm_eland_lane(request, fc_id, cnm, lane):
     
     bedgen = makebed.make_bed_from_eland_stream_generator(fi, name, description)
     
-    return HttpResponse(bedgen)
+    return HttpResponse(bedgen, mimetype="application/x-bedfile")
 
     
 def _files(flowcell_id, lane):