mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
Bug 111522: Provide ability to specify MIME type of attachment when downloading - correction of url parameter name to avoid usage conflicts with other parts of Bugzilla
Patch by Alex Vincent <ajvincent@juno.com> r= justdave, a= justdave
This commit is contained in:
parent
66f3d74832
commit
9f9a28d8a1
@ -436,12 +436,12 @@ sub view
|
||||
my ($contenttype, $filename, $thedata) = FetchSQLData();
|
||||
|
||||
# Bug 111522: allow overriding content-type manually in the posted $::FORM.
|
||||
if ($::FORM{'ctype'})
|
||||
if ($::FORM{'content_type'})
|
||||
{
|
||||
$::FORM{'contenttypemethod'} = 'manual';
|
||||
$::FORM{'contenttypeentry'} = $::FORM{'ctype'};
|
||||
$::FORM{'contenttypeentry'} = $::FORM{'content_type'};
|
||||
validateContentType();
|
||||
$contenttype = $::FORM{'ctype'};
|
||||
$contenttype = $::FORM{'content_type'};
|
||||
}
|
||||
|
||||
# Return the appropriate HTTP response headers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user