2009/12/18 Steve Vinoski <vinoski@ieee.org>

2009/12/18 Davide Marquês <nesrait@gmail.com>
I just looked at the code and I suggest this:

case yaws:outh_get_doclose() of
  true -> ok;
  false ->

     GS#gs.ssl == nossl ->
    GS#gs.ssl == ssl ->

Along with:
  put(outh, (get(outh))#outh{doclose = false})
instead of

That should make it generic enough for usage in streaming pids.

In that case, you could just return

{header, {connection, erase}}

in the same list where you return streamcontent_from_pid, which removes any Connection header from the reply headers and also sets doclose in the process registry to false.

Just to clarify, I will make the streamcontent_from_pid return value enforce this side-effect for the connection header and setting, but if you want it to work immediately you could put it in your code right now and it would still work even after I change the code.