noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/07: Fix : JSON answer didn't work


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/07: Fix : JSON answer didn't work
Date: Tue, 8 Mar 2022 17:08:56 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 421e394060e5f21c0cf77643a1a2171bc273226e
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Mar 8 09:21:59 2022 +0100

    Fix : JSON answer didn't work
---
 include/lib/function_javascript.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/lib/function_javascript.php 
b/include/lib/function_javascript.php
index 2b9b7a1b..0b0a4a65 100644
--- a/include/lib/function_javascript.php
+++ b/include/lib/function_javascript.php
@@ -2793,7 +2793,7 @@ EOF;
  */
 function json_response($p_answer)
 {
-    header("Content-type: text/json; charset: utf8", true);
+    header("Content-type: application/json; charset: utf8", true);
     echo json_encode($p_answer,
             JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_NUMERIC_CHECK);
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]