回答編集履歴
2
JSONヘッダー付与
answer
CHANGED
@@ -18,6 +18,10 @@
|
|
18
18
|
$send_number = 100;
|
19
19
|
|
20
20
|
$response = array("send_number" => $send_number);
|
21
|
+
|
22
|
+
header('Content-Type: application/json charset=UTF-8');
|
23
|
+
header('X-Content-Type-Options: nosniff');
|
24
|
+
|
21
25
|
echo json_encode($response, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP);
|
22
26
|
|
23
27
|
exit;
|
1
終端処理
answer
CHANGED
@@ -19,5 +19,6 @@
|
|
19
19
|
|
20
20
|
$response = array("send_number" => $send_number);
|
21
21
|
echo json_encode($response, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP);
|
22
|
+
|
22
|
-
|
23
|
+
exit;
|
23
24
|
```
|