couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [11/44] git commit: Restore 400 error for empty PUT
Date Tue, 04 Dec 2012 20:43:48 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/bb6a80a6
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/bb6a80a6
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/bb6a80a6

Branch: refs/heads/1368-fix-multipart-header-parts
Commit: bb6a80a6e997e31e9e463b4c4f885eb23d4a71b1
Parents: c59f837
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Nov 9 16:03:22 2012 +0000
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sun Nov 11 20:32:02 2012 +0100

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


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