1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

update changes, add more tests

This commit is contained in:
Ilya Kreymer 2014-04-07 17:41:14 -07:00
parent a331061691
commit 02fe78cb0b
3 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,11 @@
pywb 0.3.1 changelist
~~~~~~~~~~~~~~~~~~~~~
* Improve lxml rewriting, letting lxml handle decoding from bytestream (to address #36)
* Update wombat.js to support: scheme-relative urls rewriting, dom manipulation rewriting, disable web Worker api which could leak to live requests
* Fixed support for empty arc/warc records. Indexed with '-', replay with '204 No Content'
* Improve lxml rewriting, letting lxml handle parsing and decoding from bytestream directly (to address #36)
pywb 0.3.0 changelist

View File

@ -32,6 +32,10 @@ True
>>> BlockLoader(HMACCookieMaker('test', 'test', 5)).load('http://example.com', 41, 14).read()
'Example Domain'
# fixed cookie
>>> BlockLoader('some=value').load('http://example.com', 41, 14).read()
'Example Domain'
# test with extra id, ensure 4 parts of the A-B=C-D form are present
>>> len(re.split('[-=]', HMACCookieMaker('test', 'test', 5).make('extra')))
4

View File

@ -42,6 +42,7 @@ from io import BytesIO
status_headers_1 = "\
HTTP/1.0 200 OK\r\n\
Content-Type: ABC\r\n\
HTTP/1.0 200 OK\r\n\
Some: Value\r\n\
Multi-Line: Value1\r\n\
Also This\r\n\