aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Glezer <mg@tekii.com.ar>2015-01-14 12:09:14 -0300
committerMarcelo Glezer <mg@tekii.com.ar>2015-01-14 12:09:14 -0300
commit36ec20bbb8a0b91a265849c48a660b3fd29d7122 (patch)
tree9b1176b3dcd510fd4d5600610f362f8a6efeca5b
parenta4bfa677e95b058c50d49b4b3ae986351ed0cbf8 (diff)
downloadmitmproxy-36ec20bbb8a0b91a265849c48a660b3fd29d7122.tar.gz
mitmproxy-36ec20bbb8a0b91a265849c48a660b3fd29d7122.tar.bz2
mitmproxy-36ec20bbb8a0b91a265849c48a660b3fd29d7122.zip
removed invalid comment and unneeded safe text
-rw-r--r--libmproxy/console/flowlist.py1
-rw-r--r--libmproxy/protocol/http.py4
2 files changed, 0 insertions, 5 deletions
diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py
index 655df74d..d48f75a4 100644
--- a/libmproxy/console/flowlist.py
+++ b/libmproxy/console/flowlist.py
@@ -216,7 +216,6 @@ class ConnectionItem(common.WWrap):
self.flow
)
elif key == "g":
- #copy flow part
self.master.prompt_onekey(
"Copy Response",
(
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index f822fcc8..9846fc5b 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -956,15 +956,11 @@ class HTTPFlow(Flow):
def response_content(self):
with decoded(self.response):
s = self.response.content
- if s == None:
- s = "[No content]"
return s
def response_headers(self):
with decoded(self.response):
s = str(self.response.headers)
- if s == None:
- s = "[]"
return s
class HttpAuthenticationError(Exception):