ring-clojure / ring-codec

Utility library for encoding and decoding data
MIT License
63 stars 30 forks source link

ensure form-decode-str encoding is a String #23

Open mccraigmccraig opened 5 years ago

mccraigmccraig commented 5 years ago

throws an Exception if the encoding arg given to the arity-2 version of form-decode-str is not a String value, because a nil encoding will cause a surprising {nil nil} parse result

addresses issue: #22

weavejester commented 5 years ago

What's your reasoning for using an ex-info rather than a precondition?