fix parsing of STREAM frames that have the FinBit set

fixes #542
This commit is contained in:
Marten Seemann
2017-04-16 14:52:34 +07:00
parent 09c6c4118b
commit a06abf91f5
2 changed files with 21 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ func ParseStreamFrame(r *bytes.Reader) (*StreamFrame, error) {
return nil, qerr.Error(qerr.InvalidStreamData, "data len too large")
}
if dataLen == 0 {
if !frame.DataLenPresent {
// The rest of the packet is data
dataLen = uint16(r.Len())
}