fix http request hangs when the path is collections

- request handler of /collections does not send any response when after reqeust is handled.
Merge pull request #8 from hychen/master

fix http request hangs when the path is collections