Skip to content

Commit

Permalink
加个保护
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong committed May 18, 2024
1 parent 1702051 commit 122fb7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deflate/compression_encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ func (e *CompressContextTakeover) Compress(payload *[]byte, bit uint8) (encodePa
bytespool.PutBytes(encodeBuf)
}

if e != nil && payload != nil {
e.dict.Write(*payload)
}
outBuf := out.Bytes()
return &outBuf, nil
}

0 comments on commit 122fb7e

Please sign in to comment.