change mime type of json methods from text/json to application/json
This commit is contained in:
parent
913ed8ec26
commit
e92017500e
8 changed files with 14 additions and 13 deletions
|
|
@ -1122,7 +1122,7 @@ sub www_addAlbumService {
|
|||
return XML::Simple::XMLout($document, NoAttr => 1);
|
||||
}
|
||||
|
||||
$session->http->setMimeType('text/json');
|
||||
$session->http->setMimeType('application/json');
|
||||
return JSON->new->pretty->encode($document);
|
||||
}
|
||||
|
||||
|
|
@ -1315,7 +1315,7 @@ sub www_listAlbumsService {
|
|||
$session->http->setMimeType('text/xml');
|
||||
return XML::Simple::XMLout($document, NoAttr => 1);
|
||||
}
|
||||
$session->http->setMimeType('text/json');
|
||||
$session->http->setMimeType('application/json');
|
||||
return JSON->new->pretty->encode($document);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue