diff options
author | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-05-31 04:05:10 +0530 |
---|---|---|
committer | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-05-31 04:05:10 +0530 |
commit | 33f735ef5028497ed6b8c6fc0fac2cf915379fcf (patch) | |
tree | fbf8d0c41f7f0fa25477415599b9f07fbb1ee37c /mitmproxy/master.py | |
parent | ec7d7c995c0d8e93332b43699ad372f9555c9b75 (diff) | |
download | mitmproxy-33f735ef5028497ed6b8c6fc0fac2cf915379fcf.tar.gz mitmproxy-33f735ef5028497ed6b8c6fc0fac2cf915379fcf.tar.bz2 mitmproxy-33f735ef5028497ed6b8c6fc0fac2cf915379fcf.zip |
Increase test coverage
Diffstat (limited to 'mitmproxy/master.py')
-rw-r--r-- | mitmproxy/master.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mitmproxy/master.py b/mitmproxy/master.py index d21a323e..b17f7e5d 100644 --- a/mitmproxy/master.py +++ b/mitmproxy/master.py @@ -147,14 +147,14 @@ class Master: raise exceptions.ReplayException( "Can't replay intercepted flow." ) - if f.request.raw_content is None: - raise exceptions.ReplayException( - "Can't replay flow with missing content." - ) if not f.request: raise exceptions.ReplayException( "Can't replay flow with missing request." ) + if f.request.raw_content is None: + raise exceptions.ReplayException( + "Can't replay flow with missing content." + ) f.backup() f.request.is_replay = True |