Changed the algorithm to fetch the download filename
Changed the algorithm to fetch the download filename

Changed the algorithm to fetch the download filename

Fixes: #1146 
Former-commit-id: 9db81beccd5da9decebd5e30540347295aeb968b
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox