knutin / elli

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

elli_request:body_qs/1 ignore content-type when body is empty. #81

Closed kaos closed 10 years ago

kaos commented 10 years ago

Perhaps an unusual use case, but it feels wrong to crash when calling body_qs on a post request with empty body (and no content type, granted, but that was the case when using curl, at least).

knutin commented 10 years ago

Yes, agreed. If you by accident would call body_qs in a non-POST request this behaviour makes more sense. Thanks!

kaos commented 10 years ago

:)