mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Specify charset in Content-Type header when returning JSON data from API.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
d225366f31
commit
35c5a5a3a9
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ class AurJSON {
|
|||
// overwrite cache-control header set in aur.inc to allow caching, but
|
||||
// require validation
|
||||
header('Cache-Control: public, must-revalidate, max-age=0');
|
||||
header('Content-Type: application/json, charset=utf-8');
|
||||
|
||||
// handle error states
|
||||
if ( !isset($http_data['type']) || !isset($http_data['arg']) ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue