[BUGFIX] API: Set content type to plain text

Setting the content type to text only will
make some browsers to ignore the utf8 charset.

Set the default content type to "plain text"
to deliver UTF8 and avoid errors while generating
a bash script with special characters.
This commit is contained in:
Dan Untenzu 2017-01-16 12:00:39 +01:00 committed by Jerome Jutteau
parent 7dd194ef30
commit 11233d68c6

View File

@ -64,7 +64,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0)
}
/* Lets use interface now. */
header('Content-Type: text; charset=utf-8');
header('Content-Type: text/plain; charset=utf-8');
check_errors ($cfg);
if (has_error ())