Fork me on GitHub

Heya, let's say I have a handler which will respond via as-channel and thus send a Transfer-Encoding: chunked header on GET rather than a Content-Length header. Now I want that handler to respond the same way to a HEAD request, of course. However, I can't find a way to achieve that, immutante.web always adds a Content-Length header unless I go through as-channel, too, and don't close the channel right in the :on-open callback. Any hints?


That is, keeping the channel open beyond the :on-open callback indeed produces a Transfer-Encoding: chunked header but then I have to have some mechanism that cleans up those dummy channels afterwards which I would like to avoid 🙂