mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Display "No Content" instead of a parse error when there is no content.
This commit is contained in:
parent
a2f9ca1d4d
commit
71ae158d7b
@ -357,6 +357,8 @@ def get_content_view(viewmode, hdrItems, content, limit, logfunc):
|
|||||||
"""
|
"""
|
||||||
Returns a (msg, body) tuple.
|
Returns a (msg, body) tuple.
|
||||||
"""
|
"""
|
||||||
|
if not content:
|
||||||
|
return ("No content", "")
|
||||||
msg = []
|
msg = []
|
||||||
|
|
||||||
hdrs = flow.ODictCaseless([list(i) for i in hdrItems])
|
hdrs = flow.ODictCaseless([list(i) for i in hdrItems])
|
||||||
|
Loading…
Reference in New Issue
Block a user