We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ec9ecf commit 0b7cd97Copy full SHA for 0b7cd97
Bugzilla/Constants.pm
@@ -508,6 +508,7 @@ use constant contenttypes =>
508
"csv" => "text/csv" ,
509
"png" => "image/png" ,
510
"ics" => "text/calendar" ,
511
+ "txt" => "text/plain",
512
};
513
514
# Usage modes. Default USAGE_MODE_BROWSER. Use with Bugzilla->usage_mode.
Bugzilla/Template.pm
@@ -144,7 +144,7 @@ sub get_format {
144
'template' => $template,
145
'format' => $format,
146
'extension' => $ctype,
147
- 'ctype' => Bugzilla::Constants::contenttypes->{$ctype}
+ 'ctype' => Bugzilla::Constants::contenttypes->{$ctype} // 'application/octet-stream',
148
149
}
150
0 commit comments