Set the content-type of JSON responses to application/json, not text/plain (#6573)

pull/7076/head
Christian Weiske 5 years ago committed by Aleksander Machniak
parent 511e99ee1a
commit 1c1a73e4d5

@ -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

Loading…
Cancel
Save