Replace application/javascript by application/json (Fixes #2376)
This commit is contained in:
parent
9f404b1463
commit
893385d007
|
@ -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…
Reference in New Issue
Block a user