aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-06-08 09:19:25 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-06-08 09:19:25 +1200
commitdb11fe0087776c2bf5d95f5aeb751c6c35d67f4b (patch)
tree1aab054770dee86506a1897093dde2d35489a0de /netlib
parentba466dbb358eba223c49fbe602a667aa1a3c7459 (diff)
parenteb680e7764ec902518bc66e4d5c7667326ed5811 (diff)
downloadmitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.tar.gz
mitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.tar.bz2
mitmproxy-db11fe0087776c2bf5d95f5aeb751c6c35d67f4b.zip
Merge branch 'master' into beautiful-json
Diffstat (limited to 'netlib')
-rw-r--r--netlib/strutils.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/netlib/strutils.py b/netlib/strutils.py
index 03b371f5..5ad41c7e 100644
--- a/netlib/strutils.py
+++ b/netlib/strutils.py
@@ -120,13 +120,7 @@ def isMostlyBin(s):
def isXML(s):
- for i in s:
- if i in "\n \t":
- continue
- elif i == "<":
- return True
- else:
- return False
+ return s.strip().startswith("<")
def clean_hanging_newline(t):