1
0
Fork 0

Update golang.org/x/net dependency

This commit is contained in:
Michael 2018-06-28 17:58:04 +02:00 committed by Traefiker Bot
parent d5436fb28b
commit ba8c9295ac
23 changed files with 934 additions and 422 deletions

View file

@ -389,6 +389,12 @@ func (d *Decoder) callEmit(hf HeaderField) error {
// (same invariants and behavior as parseHeaderFieldRepr)
func (d *Decoder) parseDynamicTableSizeUpdate() error {
// RFC 7541, sec 4.2: This dynamic table size update MUST occur at the
// beginning of the first header block following the change to the dynamic table size.
if d.dynTab.size > 0 {
return DecodingError{errors.New("dynamic table size update MUST occur at the beginning of a header block")}
}
buf := d.buf
size, buf, err := readVarInt(5, buf)
if err != nil {