diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-12-31 12:23:42 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-12-31 12:23:42 +1300 |
commit | b07ab253b7a2adec01233989d983d2f180c9fe4e (patch) | |
tree | 80733cfb97e40b441ee45f44737fd1874bcd93f9 /libpathod | |
parent | 781592d6c0f6e2987c7ab3a5aa9b5505fa461e95 (diff) | |
download | mitmproxy-b07ab253b7a2adec01233989d983d2f180c9fe4e.tar.gz mitmproxy-b07ab253b7a2adec01233989d983d2f180c9fe4e.tar.bz2 mitmproxy-b07ab253b7a2adec01233989d983d2f180c9fe4e.zip |
Require requests > 1.0.4
This changes the API slightly, since json is now a method, not a property.
Diffstat (limited to 'libpathod')
-rw-r--r-- | libpathod/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/test.py b/libpathod/test.py index e431be18..ed0ee26a 100644 --- a/libpathod/test.py +++ b/libpathod/test.py @@ -30,7 +30,7 @@ class Daemon: Return some basic info about the remote daemon. """ resp = requests.get("%s/api/info"%self.urlbase, verify=False) - return resp.json + return resp.json() def last_log(self): """ @@ -47,7 +47,7 @@ class Daemon: Return the log buffer as a list of dictionaries. """ resp = requests.get("%s/api/log"%self.urlbase, verify=False) - return resp.json["log"] + return resp.json()["log"] def clear_log(self): """ |