even if not mandatory, set stream content-length

I have forked your repo and made something very similar as I was working too with phantom, I have seen you have made some change since yesterday, as me I was doing by splitting server/client in separate required file , very nice job. You will see my phantom soon too.