aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/category.js
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-08-23 16:39:19 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-23 16:39:19 +0200
commit3c2167d60b22032956e39fa536cc7684126a5b54 (patch)
tree40d59c2ef5c25e015f5c663e76007a63147e5423 /p/scripts/category.js
parentca28c90f8bf1603594a1489bdeefd2d72e7e18bb (diff)
Charset for JSON exchanges (#6710)
Apply some minor recommendations from Snyk scanner
Diffstat (limited to 'p/scripts/category.js')
-rw-r--r--p/scripts/category.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/category.js b/p/scripts/category.js
index fc8f8865a..d412bd6fb 100644
--- a/p/scripts/category.js
+++ b/p/scripts/category.js
@@ -143,7 +143,7 @@ function init_draggable() {
dragFeedId = '';
dragHtml = '';
};
- req.setRequestHeader('Content-Type', 'application/json');
+ req.setRequestHeader('Content-Type', 'application/json; charset=utf-8');
req.send(JSON.stringify({
f_id: dragFeedId,
c_id: ul_dropzone.getAttribute('data-cat-id'),