Fork me on GitHub
#immutant
<
2017-04-28
>
dergutemoritz10:04:52

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?

dergutemoritz10:04:34

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 🙂