Replace application/javascript by application/json (Fixes #2376)

This commit is contained in:
Xavier Guimard 2020-11-06 17:58:41 +01:00
parent 9f404b1463
commit 893385d007
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ sub sendJs {
return [
200,
[
'Content-Type' => 'application/javascript',
'Content-Type' => 'application/json',
'Content-Length' => length($s),
'Cache-Control' => 'public,max-age=2592000',
],

View File

@ -277,7 +277,7 @@ sub do {
code => 401,
headers => [
'WWW-Authenticate' => "SSO " . $self->conf->{portal},
"Content-Type" => "application/javascript"
"Content-Type" => "application/json"
],
);
}