diff options
author | hashworks <mail@hashworks.net> | 2024-02-24 15:25:04 +0100 |
---|---|---|
committer | hashworks <mail@hashworks.net> | 2024-02-24 15:25:14 +0100 |
commit | 4c6c4b8c19797333b4d93a266afd7f243694d875 (patch) | |
tree | f0b81395a5195cf3f3a215ab1d487b9c2bdc6466 /application/libraries/Pygments.php | |
parent | b253c9a893077711e503c69970b24ae94e7451ac (diff) |
Use systemd lexer for systemd .service file mimetypes
Uploading systemd foo.service files results in the
application/x-wine-extension-ini mimetype, which triggers a download on
various browsers. This fixes that and displays them using the systemd
lexer instead.
Diffstat (limited to 'application/libraries/Pygments.php')
-rw-r--r-- | application/libraries/Pygments.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/libraries/Pygments.php b/application/libraries/Pygments.php index 174642141..e96b84258 100644 --- a/application/libraries/Pygments.php +++ b/application/libraries/Pygments.php @@ -112,6 +112,7 @@ class Pygments { 'application/x-shellscript' => 'bash', 'application/xslt+xml' => "xml", 'application/x-x509-ca-cert' => 'text', + 'application/x-wine-extension-ini' => 'systemd', 'message/rfc822' => 'text', 'text/css' => 'css', 'text/html' => 'xml', |