[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);
}
- [Noalyss-commit] [noalyss] branch devel updated (eba72b4c -> d0eb957a), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 05/07: Improve : set and setp return $this, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 06/07: Fix : JSON answer didn't work,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/07: Improve : card attribute option is a textarea, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the session is expired instead of stopping, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 04/07: Documentation, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 03/07: Fixed : error when column contains only a input element (checkbox), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 02/07: Documentation, Dany De Bontridder, 2022/03/08