diff options
author | Christian Moelders <christian.moelders@storeplus.de> | 2018-12-17 11:58:33 +0100 |
---|---|---|
committer | Christian Moelders <christian.moelders@storeplus.de> | 2018-12-17 11:58:33 +0100 |
commit | fb18e071e508fd5d569ed63d29bc79211605007b (patch) | |
tree | ec18da0c8e73c43773cc01d38e981a2953dd61a9 /interface | |
parent | 3f83c2f80c545daeb858801cbef6ad7c5a9c5198 (diff) | |
download | rspamd-fb18e071e508fd5d569ed63d29bc79211605007b.tar.gz rspamd-fb18e071e508fd5d569ed63d29bc79211605007b.zip |
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.
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/upload.js | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |