Your message dated Mon, 21 Nov 2016 11:35:35 -0800
with message-id <[email protected]>
and subject line Re: Bug#845188: bugs.debian.org: Please provide
"Content-Disposition: attachment; filename=[..]" headers
has caused the Debian Bug report #845188,
regarding bugs.debian.org: Please provide "Content-Disposition: attachment;
filename=[..]" headers
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
845188: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845188
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bugs.debian.org
Version: 2.54+dfsg-7
Severity: wishlist
Hi,
Saving attachments is currently quite ugly. For example:
$ wget
https://bugs.debian.org/cgi-bin/bugreport.cgi\?att\=1\;bug\=804063\;filename\=reproducible.patch\;msg\=10
… downloads this to a file called:
bugreport.cgi?att=1;bug=804063;filename=reproducible.patch;msg=10
This can be especially annoying due to the use of "?" and ";" shell
metacharacters.
Providing the HTTP "Content-Disposition" header of "reproducible.patch"
here would instruct clients to (attempt to) save the file to that name.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- End Message ---
--- Begin Message ---
On Mon, 21 Nov 2016, Chris Lamb wrote:
> Providing the HTTP "Content-Disposition" header of
> "reproducible.patch" here would instruct clients to (attempt to) save
> the file to that name.
We (hopefully) do this in all cases for which there is a filename:
$ HEAD
https://bugs.debian.org/cgi-bin/bugreport.cgi\?att\=1\;bug\=804063\;filename\=reproducible.patch\;msg\=10
200 OK
[...]
Content-Disposition: inline; filename="reproducible.patch"
Apparently, for wget you have to use the --content-disposition option:
wget --content-disposition
https://bugs.debian.org/cgi-bin/bugreport.cgi\?att\=1\;bug\=804063\;filename\=reproducible.patch\;msg\=10
to have it download using the right filename. [For curl, it's -OJ]
--
Don Armstrong https://www.donarmstrong.com
We want 6. 6 is the 1.
-- "The Prisoner (2009 Miniseries)" _Checkmate_
--- End Message ---