BryanDavis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/287250
Change subject: Serve .txt files with mime-type text/plain
......................................................................
Serve .txt files with mime-type text/plain
Change-Id: I01339d398ce59f34e5bbfaff058c9b0bf9b4efb7
---
M www/index.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/labs/toollabs
refs/changes/50/287250/1
diff --git a/www/index.php b/www/index.php
index 819a153..de28983 100644
--- a/www/index.php
+++ b/www/index.php
@@ -47,6 +47,9 @@
case 'css':
$mime = 'text/css';
break;
+ case 'txt':
+ $mime = 'text/plain';
+ break;
case 'php':
$mime = 'application/x-httpd-php-source';
break;
--
To view, visit https://gerrit.wikimedia.org/r/287250
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I01339d398ce59f34e5bbfaff058c9b0bf9b4efb7
Gerrit-PatchSet: 1
Gerrit-Project: labs/toollabs
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits