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

Moo
Xavier Guimard 5 years ago
parent 9f404b1463
commit 893385d007
  1. 2
      lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm
  2. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm

@ -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',
],

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

Loading…
Cancel
Save