commit | 56616fad9b0621b6606e4b521a2ec4b8342877aa | [log] [tgz] |
---|---|---|
author | Benjamin Bastian <benjamin.bastian@gmail.com> | Thu Mar 09 18:20:25 2017 -0800 |
committer | Benjamin Bastian <benjamin.bastian@gmail.com> | Thu Mar 09 18:20:25 2017 -0800 |
tree | b31a3ac1d0ddc98eb1b139ab8cfbb18fb784a8c6 | |
parent | e1d13a983a0ba56fcb1eb31c4e4fe56bc3692719 [diff] |
Fix undef error on empty list function response Prior to this commit, if a list function did not return any data or returned an error, it would return a #lacc{} record from list_cb/2 rather than a valid #mochiweb_response{} record. This would cause chttpd to crash. This commit fixes this bug by always returning a valid record.