From fd60f7ef8ddbf1fa5c7a2a03042002758ab89204 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Wed, 30 Dec 2015 11:44:17 -0800 Subject: [PATCH] Allow direct download of .properties files Tell Gerrit that .properties files are safe so that users can download the file without having packaged inside of a zip. To do this we need to set the Code Mirror[1] mimetype in Gerrit config[2] [1] https://codemirror.net/mode/properties/index.html [2] https://gerrit-documentation.storage.googleapis.com/Documentation/ 2.11/config-gerrit.html#mimetype Change-Id: I53dd26bb3de7c49f64c5179275d8667f500a35f8 --- templates/gerrit.config.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/gerrit.config.erb b/templates/gerrit.config.erb index e561ef6..16caf80 100644 --- a/templates/gerrit.config.erb +++ b/templates/gerrit.config.erb @@ -163,6 +163,8 @@ safe = true [mimetype "text/x-ini"] safe = true +[mimetype "text/x-properties"] + safe = true [mimetype "text/x-markdown"] safe = true [mimetype "text/css"]