mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
test: raw deflate
(cherry picked from commit c48dc625e38d085f34d39bbea57b3877cd5f9f67)
This commit is contained in:
parent
b0c5da3ddf
commit
ac48b3e4e6
@ -1,9 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
import os, time, zlib
|
||||
import os, time
|
||||
from zlib import *
|
||||
|
||||
data1 = '<html><body>Two lines should be visible.<br/>The second line.</body></html>'
|
||||
cd1 = zlib.compress(data1)
|
||||
|
||||
ob = compressobj(Z_DEFAULT_COMPRESSION, DEFLATED, -MAX_WBITS)
|
||||
cd1 = ob.compress(data1)
|
||||
cd1 += ob.flush()
|
||||
length = len(cd1)
|
||||
next_chunk = hex(length - 10)[2:]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user