jadahl / mod_restful

RESTful interface to ejabberd
84 stars 34 forks source link

Fix import paths ; format empty list to JSON. #26

Closed janjaapdriessen closed 8 years ago

janjaapdriessen commented 9 years ago

format_result_json for an empty list no longer yields a 400 bad request, but returns an empty Array, for instance for a get_roster call for a user that has an empty roster.

This includes the changes from jadahl/mod_restful#18 by @guitcastro

Please be gentle, erlang is not my forte.

jadahl commented 8 years ago

Merged the fix part of the commit, ignoring the Makefile changes, after having rewritten the commit subject. I also changed the formatting and got rid of a compiler warning.