From: Habu Date: Mon, 30 Apr 2018 02:45:18 +0000 (+0900) Subject: [fix]応答ヘッダにContent-Typeを設定 X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=12569953ab4042d140be472771f9e808e051ed4a;p=hengband%2Fweb.git [fix]応答ヘッダにContent-Typeを設定 jsonでデータを返すので、application/json をContent-Typeに設定する --- diff --git a/score/get_popularity_ranking.php b/score/get_popularity_ranking.php index 27e42b6..8260797 100644 --- a/score/get_popularity_ranking.php +++ b/score/get_popularity_ranking.php @@ -17,4 +17,5 @@ $statistics = $db->get_statistics_tables('total_count'); $query_time = microtime(true) - $time_start; +header('content-type: application/json; charset=utf-8'); echo json_encode($statistics);