commit fb18e07: Closes: #2684
Christian Moelders
christian.moelders at storeplus.de
Thu Dec 27 18:28:09 UTC 2018
Author: Christian Moelders
Date: 2018-12-17 11:58:33 +0100
URL: https://github.com/rspamd/rspamd/commit/fb18e071e508fd5d569ed63d29bc79211605007b (refs/pull/2685/head)
Closes: #2684
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.
---
interface/js/app/upload.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js
index f5a5cf73f..466d5d25e 100644
--- a/interface/js/app/upload.js
+++ b/interface/js/app/upload.js
@@ -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");
}
}
More information about the Commits
mailing list