chromium / web-page-replay

DEPRECATED - Use WebPageReplayGo instead:
https://github.com/catapult-project/catapult/blob/master/web_page_replay_go/README.md
Apache License 2.0
235 stars 68 forks source link

'httparchive.py edit' does not change content-length header #80

Open kilobtye opened 8 years ago

kilobtye commented 8 years ago

Content-length in 'headers' is changed, but 'original_headers' is saved in the archive now.

nedn commented 8 years ago

Can you clarify how to reproduce this bug?

kilobtye commented 8 years ago

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.