You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/11/05 02:00:15 UTC

incubator-ponymail git commit: Allow for index created (201)

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master a5365b1ee -> a4ff46f54


Allow for index created (201)

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/a4ff46f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/a4ff46f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/a4ff46f5

Branch: refs/heads/master
Commit: a4ff46f5495beaaee53d2ea7f976d1c44c2fcb0b
Parents: a5365b1
Author: Sebb <se...@apache.org>
Authored: Sat Nov 5 02:00:03 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Sat Nov 5 02:00:03 2016 +0000

----------------------------------------------------------------------
 site/api/lib/elastic.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a4ff46f5/site/api/lib/elastic.lua
----------------------------------------------------------------------
diff --git a/site/api/lib/elastic.lua b/site/api/lib/elastic.lua
index 70b70fe..7561223 100644
--- a/site/api/lib/elastic.lua
+++ b/site/api/lib/elastic.lua
@@ -23,8 +23,9 @@ local config = require 'lib/config'
 local default_doc = "mbox"
 
 -- http code return check
+-- index returns 201 when an entry is created
 function checkReturn(code)
-    if not code or code ~= 200 then
+    if not code or (code ~= 200 and code ~= 201) then
         if not code or code == "closed" then
             -- code is called by top-level functions only, so level 3 is the external caller
             error("Could not contact database backend!", 3)