Force Content-Type `application/octet-stream` to force download
Currently, WES sets different Content-Type headers depending of the file:
curl -s -I https://dev.flow.toolchain.ebi.ac.uk/jobs/0/output/tree-out | grep Type
Content-Type: application/octet-stream
curl -s -I https://dev.flow.toolchain.ebi.ac.uk/jobs/0/output/out | grep Type
Content-Type: text/plain; charset=utf-8
It would be useful to either:
- have a flag in the URL that sets
Content-Type application/octet-stream
forcing download. For example: https://dev.flow.toolchain.ebi.ac.uk/jobs/0/output/out?download - have all get requests return
Content-Type application/octet-stream
, except logs (https://dev.flow.toolchain.ebi.ac.uk/jobs/0, or https://dev.flow.toolchain.ebi.ac.uk/jobs/0/log)
For information, these are the header that owncloud sets:
Content-Disposition: attachment; filename*=UTF-8''Q7Z403.fasta; filename="Q7Z403.fasta"
Content-Type: application/octet-stream