couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [1/4] git commit: Restore 400 error for empty PUT
Date Fri, 09 Nov 2012 17:12:12 GMT
Updated Branches:
  refs/heads/1.3.x b9af7ea50 -> 5dbd53bab
  refs/heads/master b9af7ea50 -> 2057b8956


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/2057b895
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/2057b895
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/2057b895

Branch: refs/heads/master
Commit: 2057b89565f69e963c1c935c663b71afa57ecd4d
Parents: 0d50103
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:28 2012 +0000

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/2057b895/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