mirror of
https://github.com/pi-hole/web.git
synced 2026-04-28 12:44:07 +01:00
Add "processData: false" to all JSON data we send
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -516,6 +516,7 @@ function addAdlist(event) {
|
||||
url: "/api/lists",
|
||||
method: "post",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
data: JSON.stringify({ address: address, comment: comment, type: type }),
|
||||
success: function () {
|
||||
utils.enableAll();
|
||||
@@ -582,6 +583,7 @@ function editAdlist() {
|
||||
url: "/api/lists/" + encodeURIComponent(addressDecoded),
|
||||
method: "put",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
data: JSON.stringify({
|
||||
groups: groups,
|
||||
comment: comment,
|
||||
|
||||
Reference in New Issue
Block a user