Commit b9221e02 authored by Stephane Glondu's avatar Stephane Glondu

Set MIME type of .jsons files to text/plain

Recent versions of Firefox now try to parse them and complain.
parent 07345481
......@@ -1550,7 +1550,8 @@ let () =
let content_type_of_file = function
| ESRaw -> "application/json; charset=utf-8"
| ESKeys | ESTParams | ESBallots | ESETally | ESResult -> "application/json"
| ESTParams | ESETally | ESResult -> "application/json"
| ESKeys | ESBallots -> "text/plain" (* should be "application/json-seq", but we don't use RS *)
| ESCreds | ESRecords | ESVoters -> "text/plain"
let handle_pseudo_file uuid f site_user =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment