OSDN Git Service
(root)
/
hengband
/
web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d68f14c
)
[fix]応答ヘッダにContent-Typeを設定
author
Habu
<habu@users.sourceforge.jp>
Mon, 30 Apr 2018 02:45:18 +0000
(11:45 +0900)
committer
Habu
<habu@users.sourceforge.jp>
Mon, 30 Apr 2018 02:45:18 +0000
(11:45 +0900)
jsonでデータを返すので、application/json をContent-Typeに設定する
score/get_popularity_ranking.php
patch
|
blob
|
history
diff --git
a/score/get_popularity_ranking.php
b/score/get_popularity_ranking.php
index
27e42b6
..
8260797
100644
(file)
--- 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);