Skip to content

Commit

Permalink
[jan] Use correct MIME type when exporting pages as plain text or ReST.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 29, 2018
1 parent b372ace commit 0dbc543
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions display.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@

case 'rst':
$format = 'Rst';
$ext = '';
$mime = 'text/text';
$ext = '.rst';
$mime = 'text/plain';
break;

case 'plain':
default:
$format = 'Plain';
$ext = '.txt';
$mime = 'text/text';
$mime = 'text/plain';
break;
}

Expand Down
4 changes: 3 additions & 1 deletion doc/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
license:
identifier: GPL-2.0
uri: http://www.horde.org/licenses/gpl
notes:
notes: |+
[jan] Use correct MIME type when exporting pages as plain text or ReST.
2.0.8:
api: 2.0.0
state:
Expand Down

0 comments on commit 0dbc543

Please sign in to comment.