Skip to content

Commit

Permalink
Restore 400 error for empty PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
rnewson committed Nov 9, 2012
1 parent 0d50103 commit 2057b89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ejson/ejson.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ init() ->
end.


decode(undefined) ->
throw({invalid_json, undefined});
decode(IoList) ->
try
nif_decode(IoList)
Expand Down

0 comments on commit 2057b89

Please sign in to comment.