aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/flow.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-20 13:29:41 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-20 13:29:41 +1300
commit7ddba22f515aa8997da0b5ee36c8ebc9961493dd (patch)
treedef335c030b962ed5926b1b96d444a20408ed024 /libmproxy/flow.py
parentc2ae8285f4bc092a449d92f4bbdb150d586c2c51 (diff)
downloadmitmproxy-7ddba22f515aa8997da0b5ee36c8ebc9961493dd.tar.gz
mitmproxy-7ddba22f515aa8997da0b5ee36c8ebc9961493dd.tar.bz2
mitmproxy-7ddba22f515aa8997da0b5ee36c8ebc9961493dd.zip
Certificates are now generated in a temporary per-session directory.
This means that certificates don't accumulate in the conf directory, users don't have to clear certificates if the CA is regenerated, and the user can specify a custom CA without invalid certificates being loaded inadvertently.
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r--libmproxy/flow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index 3520cc93..d081e66c 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -215,7 +215,7 @@ class State:
Add an error response to the state. Returns the matching flow, or
None if there isn't one.
"""
- f = self.flow_map.get(err.flow.request)
+ f = self.flow_map.get(err.request) if err.request else None
if not f:
return None
f.error = err