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/12/18 23:56:07 UTC
incubator-ponymail git commit: Caller is expecting a JSON response
Repository: incubator-ponymail
Updated Branches:
refs/heads/master 0834913ee -> 4de111760
Caller is expecting a JSON response
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/4de11176
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/4de11176
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/4de11176
Branch: refs/heads/master
Commit: 4de111760ce56476b58bf42e84587ca3259d4dbf
Parents: 0834913
Author: Sebb <se...@apache.org>
Authored: Sun Dec 18 23:55:51 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Sun Dec 18 23:55:51 2016 +0000
----------------------------------------------------------------------
site/api/email.lua | 2 +-
site/api/thread.lua | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/4de11176/site/api/email.lua
----------------------------------------------------------------------
diff --git a/site/api/email.lua b/site/api/email.lua
index 64eec36..825a4f1 100644
--- a/site/api/email.lua
+++ b/site/api/email.lua
@@ -108,7 +108,7 @@ function handle(r)
end
end
end
- r:puts[[{"No such e-mail or you do not have access to it."}]]
+ r:puts(JSON.encode{error = "No such e-mail or you do not have access to it."})
return cross.OK
end
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/4de11176/site/api/thread.lua
----------------------------------------------------------------------
diff --git a/site/api/thread.lua b/site/api/thread.lua
index 7be9c47..97e8152 100644
--- a/site/api/thread.lua
+++ b/site/api/thread.lua
@@ -113,7 +113,7 @@ function handle(r)
return cross.OK
end
end
- r:puts[[{"No such e-mail or you do not have access to it."}]]
+ r:puts(JSON.encode{error = "No such e-mail or you do not have access to it."})
return cross.OK
end