web-page-replay
web-page-replay copied to clipboard
'httparchive.py edit' does not change content-length header
Content-length in 'headers' is changed, but 'original_headers' is saved in the archive now.
Can you clarify how to reproduce this bug?
Well, I don't know if anyone else use this feature...
Individually run httparchive.py edit ...
can edit response content in a recorded .wpr file. Content-length should be changed accordingly, but the change is not saved.
Change self.headers to self.original_headers inside set_header() can solve this issue.