couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/4] git commit: Restore 400 error for empty PUT
Date Fri, 09 Nov 2012 17:12:12 GMT
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 <rnewson@apache.org>
Authored: Fri Nov 9 16:03:22 2012 +0000
Committer: Robert Newson <rnewson@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)


Mime
View raw message