BUGFIX: Headers would be read incorrectly in some cases.
BUGFIX: Headers would be read incorrectly in some cases.

When being fed only 1 byte at a time, the header parsing would not work properly. This caused Autobahn Testsuite 2.11 (index 27) to fail. Instead of passing the max size of the header buffer, we should instead pass the actual bytes we have read.

couchbasedeps/libws,couchbasedeps/libws,JoakimSoderberg/libws,couchbasedeps/libws,JoakimSoderberg/libws,JoakimSoderberg/libws