diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-06-27 15:59:17 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-06-27 15:59:17 +1200 |
commit | f004326855126e01e7a095fc65562c41060ffbed (patch) | |
tree | 976f800bd830cec66581b02066f20cdd24b1d492 /libmproxy/proxy.py | |
parent | 2ae7808ca9c83cb69fe6606051edd43e417281c7 (diff) | |
download | mitmproxy-f004326855126e01e7a095fc65562c41060ffbed.tar.gz mitmproxy-f004326855126e01e7a095fc65562c41060ffbed.tar.bz2 mitmproxy-f004326855126e01e7a095fc65562c41060ffbed.zip |
Try not to hang when user views large request & response bodies
Two different strategies here:
- Use a simple heuristic to detect if we're looking at XML data when indent
mode is used. On non-XML data we can hang even on small documents.
- Only view partial data for large bodies. At the moment the cutoff is
100k. I might finetune this later.
Diffstat (limited to 'libmproxy/proxy.py')
0 files changed, 0 insertions, 0 deletions