You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2012/11/09 18:12:12 UTC

[2/4] git commit: Restore 400 error for empty PUT

Restore 400 error for empty PUT


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

Branch: refs/heads/1.3.x
Commit: 5dbd53babd8523254c85d0e833fd14e713c441d1
Parents: a124976
Author: Robert Newson <rn...@apache.org>
Authored: Fri Nov 9 16:03:22 2012 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Nov 9 16:03:22 2012 +0000

----------------------------------------------------------------------
 src/ejson/ejson.erl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/5dbd53ba/src/ejson/ejson.erl
----------------------------------------------------------------------
diff --git a/src/ejson/ejson.erl b/src/ejson/ejson.erl
index 07a71c2..72bb6c1 100644
--- a/src/ejson/ejson.erl
+++ b/src/ejson/ejson.erl
@@ -33,6 +33,8 @@ init() ->
     end.
 
 
+decode(undefined) ->
+    throw({invalid_json, undefined});
 decode(IoList) ->
     try
         nif_decode(IoList)