You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put together a simple python script to repro this. It's a simple http file server that forces the Content-Disposition header to be included.
# Download script from gist: https://gist.github.com/nicr9/d3d0a96f39c4ac7956dfad74b5b411c6
$ wget -O content_disposition.py https://gist.githubusercontent.com/nicr9/d3d0a96f39c4ac7956dfad74b5b411c6/raw/89eb60f547285fb7993cf61940a29e1d83bddc87/content_disposition.py
# Run file server in cwd
$ python content_disposition.py &# Download server file
$ bat -download http://localhost:8000/content_disposition.py
# Check that the filename is wrapped in quotes:
$ ls -alF \"*\"
-rw-rw-r-- 1 nic nic 450 Apr 29 21:47 "content_disposition.py"
Given the following
The file resulting is literaly
"dog-spoon-lobster.jpg"
it should have beendog-spoon-lobster.jpg
It looks like Content-Disposition does not remove double quotes ?
The text was updated successfully, but these errors were encountered: