mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-04-22 12:36:17 +02:00
[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:
parent
7dd194ef30
commit
11233d68c6
@ -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 ())
|
||||
|
Loading…
x
Reference in New Issue
Block a user