From 893385d0075e64c7c2b183c4c842972a6ec7f71e Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Fri, 6 Nov 2020 17:58:41 +0100 Subject: [PATCH] Replace application/javascript by application/json (Fixes #2376) --- lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm | 2 +- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm index d40d09e79..01241ece0 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/PSGI.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', ], diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index 7b2f3861f..ca5644298 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -277,7 +277,7 @@ sub do { code => 401, headers => [ 'WWW-Authenticate' => "SSO " . $self->conf->{portal}, - "Content-Type" => "application/javascript" + "Content-Type" => "application/json" ], ); }