Skip to content

Commit

Permalink
fix bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-X-Net committed Jul 8, 2023
1 parent 305fc55 commit c63d39f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/default/lib/noarch/tlslite/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,7 @@ def _parse_compress(self, parser):
compressed_content = parser.getFixBytes(compressed_length)
parser.stopLengthCheck()

compressed_content = bytes(compressed_content)
decompressed_content = brotli.decompress(compressed_content)
if len(decompressed_content) != uncompressed_length:
raise AssertionError()
Expand Down

0 comments on commit c63d39f

Please sign in to comment.