Permalink
Browse files

Restore 400 error for empty PUT

  • Loading branch information...
1 parent 0d50103 commit 2057b89565f69e963c1c935c663b71afa57ecd4d @rnewson rnewson committed Nov 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/ejson/ejson.erl
View
@@ -33,6 +33,8 @@ init() ->
end.
+decode(undefined) ->
+ throw({invalid_json, undefined});
decode(IoList) ->
try
nif_decode(IoList)

0 comments on commit 2057b89

Please sign in to comment.