couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject chttpd commit: updated refs/heads/master to 8d96bb6
Date Tue, 22 Sep 2015 19:20:28 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master 87e3db046 -> 8d96bb675


Use illegal_docid error for really bad document ids


Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/8d96bb67
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/8d96bb67
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/8d96bb67

Branch: refs/heads/master
Commit: 8d96bb6757bedbbe91acbfa0a6ced1c4a74cb8ab
Parents: 87e3db0
Author: Alexander Shorin <kxepal@apache.org>
Authored: Thu Sep 17 23:09:45 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Tue Sep 22 22:19:24 2015 +0300

----------------------------------------------------------------------
 src/chttpd.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/8d96bb67/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 845a413..8613578 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -818,6 +818,8 @@ error_info({error, {illegal_database_name, Name}}) ->
         "digits (0-9), and any of the characters _, $, (, ), +, -, and / ",
         "are allowed. Must begin with a letter.">>,
     {400, <<"illegal_database_name">>, Message};
+error_info({illegal_docid, Reason}) ->
+    {400, <<"illegal_docid">>, Reason};
 error_info({_DocID,{illegal_docid,DocID}}) ->
     {400, <<"illegal_docid">>,DocID};
 error_info({error, {database_name_too_long, DbName}}) ->


Mime
View raw message