diff options
author | Christian Weiske <cweiske+github.com@cweiske.de> | 2019-11-26 12:26:50 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-11-26 12:26:50 +0300 |
commit | 1c1a73e4d5f350d13c69a393d690d4795524bc54 (patch) | |
tree | b38b3acddc63e9e0500caacbca5e755ef5db16f9 /program | |
parent | 511e99ee1a66f97c196a3610577796f2b7479c66 (diff) |
Set the content-type of JSON responses to application/json, not text/plain (#6573)
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcmail_output_json.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail_output_json.php b/program/include/rcmail_output_json.php index 38418421d..7c543843a 100644 --- a/program/include/rcmail_output_json.php +++ b/program/include/rcmail_output_json.php @@ -216,7 +216,7 @@ class rcmail_output_json extends rcmail_output if (!$s_header_sent) { $s_header_sent = true; $this->nocacheing_headers(); - header('Content-Type: text/plain; charset=' . $this->get_charset()); + header('Content-Type: application/json; charset=' . $this->get_charset()); } // unset default env vars |