diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Constants.pm | 1 | ||||
-rw-r--r-- | Bugzilla/Template.pm | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index cfa2be909..5f41cd3f6 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -508,6 +508,7 @@ use constant contenttypes => "csv" => "text/csv" , "png" => "image/png" , "ics" => "text/calendar" , + "txt" => "text/plain", }; # Usage modes. Default USAGE_MODE_BROWSER. Use with Bugzilla->usage_mode. diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 076e654cb..56ebd9c21 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -144,7 +144,7 @@ sub get_format { 'template' => $template, 'format' => $format, 'extension' => $ctype, - 'ctype' => Bugzilla::Constants::contenttypes->{$ctype} + 'ctype' => Bugzilla::Constants::contenttypes->{$ctype} // 'application/octet-stream', }; } |