Interestingly this does save the location headers, while they are not saved in my application where I discovered this. Still when loading the dump, the headers are ignored.
I'd expect the location header to survive the save / restore.
Actual Result
Location header gets stripped by the replay from file.
Describe the bug
When recording a request that contains a location header, that header is not there anymore, when replaying that request.
Additional context
It seems the code in _add_from_file() doesn't seem to restore headers, while the code in _dump() does seem to save them.
Version of
responses
0.25.0
Steps to Reproduce
Expected Result
Interestingly this does save the location headers, while they are not saved in my application where I discovered this. Still when loading the dump, the headers are ignored.
I'd expect the location header to survive the save / restore.
Actual Result
Location header gets stripped by the replay from file.