fix http request hangs when the path is collections

- request handler of /collections does not send any response when after reqeust is handled.