diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-08 04:19:25 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-08 04:19:25 +0100 |
commit | bdb763d9cff75eec4bb44d23bfc2ef6fa4871bcc (patch) | |
tree | ea0f24bb4d8d655a9f982ff5e5cd2c36d5c10f4e /libmproxy/web/app.py | |
parent | e9934cc008417cb1aed694f7f24133abac0815eb (diff) | |
download | mitmproxy-bdb763d9cff75eec4bb44d23bfc2ef6fa4871bcc.tar.gz mitmproxy-bdb763d9cff75eec4bb44d23bfc2ef6fa4871bcc.tar.bz2 mitmproxy-bdb763d9cff75eec4bb44d23bfc2ef6fa4871bcc.zip |
make stateobject simpler and stricter
Diffstat (limited to 'libmproxy/web/app.py')
-rw-r--r-- | libmproxy/web/app.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/web/app.py b/libmproxy/web/app.py index af6ea8a1..958b8669 100644 --- a/libmproxy/web/app.py +++ b/libmproxy/web/app.py @@ -170,7 +170,7 @@ class FlowHandler(RequestHandler): elif k == "port": request.port = int(v) elif k == "headers": - request.headers.load_state(v) + request.headers.set_state(v) else: print "Warning: Unknown update {}.{}: {}".format(a, k, v) @@ -184,7 +184,7 @@ class FlowHandler(RequestHandler): elif k == "http_version": response.http_version = str(v) elif k == "headers": - response.headers.load_state(v) + response.headers.set_state(v) else: print "Warning: Unknown update {}.{}: {}".format(a, k, v) else: |