knutin / elli

Simple, robust and performant Erlang web server
MIT License
663 stars 79 forks source link

Do not decode default get/post arg value. #82

Closed kaos closed 10 years ago

kaos commented 10 years ago

since binary_to_list(undefined) doesn't go down well.. ;)

kaos commented 10 years ago

It's this change, or change the default value for [get|post]_arg_decoded/2 to a binary (presumable empty, <<>>). I think this is the most backward compatible change, as there may be code relying on the default value being the atom undefined, where as this change fixes a crash to a non crash..