Updated Branches: refs/heads/431-feature_cors 547ead072 -> bcdac76ca
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/431-feature_cors Commit: bb6a80a6e997e31e9e463b4c4f885eb23d4a71b1 Parents: c59f837 Author: Robert Newson <[email protected]> Authored: Fri Nov 9 16:03:22 2012 +0000 Committer: Jan Lehnardt <[email protected]> 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)
