Fix readReseponseHeader, websocket writes