The successful upload of a text in the learning section is answered with HTTP status code 204, that is: The server has successfully processed the request and does not return any content. For this reason must be used.tags/1.9.0
@@ -52,7 +52,7 @@ define(["jquery"], | |||
headers: headers, | |||
success: function (json) { | |||
cleanTextUpload(source); | |||
if (json[0].data.success) { | |||
if (json[0].status === true) { | |||
rspamd.alertMessage("alert-success", "Data successfully uploaded"); | |||
} | |||
} |