Rebuild flowmap if the hashing method has changed during execution, see https://github.com/mitmproxy/mitmproxy/issues/4506
(self)
| 268 | self.recompute_hashes() |
| 269 | |
| 270 | def recompute_hashes(self) -> None: |
| 271 | """ |
| 272 | Rebuild flowmap if the hashing method has changed during execution, |
| 273 | see https://github.com/mitmproxy/mitmproxy/issues/4506 |
| 274 | """ |
| 275 | flows = [flow for lst in self.flowmap.values() for flow in lst] |
| 276 | self.load_flows(flows) |
| 277 | |
| 278 | def request(self, f: http.HTTPFlow) -> None: |
| 279 | if self.flowmap: |
no test coverage detected