Fix of HEX 791. Buffer index was set outside of appropriate if block, leading to setting to zero even if the buffer has no been fully read causing infinite data stream.
Merge branch 'master' of github.com:0xdata/h2o