more fixes and extension to allow return data types to be specified JAL-715
[jalview.git] / src / jalview / ws / rest / params / Alignment.java
index 23c8746..922f933 100644 (file)
@@ -53,8 +53,8 @@ public class Alignment extends InputType {
       throw new NoValidInputDataException("Couldn't write out alignment to file.",ex);
     }
     } else {
-    StringBody sb = new StringBody(new jalview.io.FormatAdapter().formatSequences(format, alignment, jvsuffix), "text/plain", Charset.forName("UTF-8"));
-    sb.getContentTypeParameters().put("filename", "alignment.fa");
+    StringBody sb = new StringBody(new jalview.io.FormatAdapter().formatSequences(format, alignment, jvsuffix)); // , "text/plain", Charset.forName("UTF-8"));
+    // sb.getContentTypeParameters().put("filename", "alignment.fa");
     return sb; 
     }
   }