mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +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.
|
||||
"""
|
||||
if not content:
|
||||
return ("No content", "")
|
||||
msg = []
|
||||
|
||||
hdrs = flow.ODictCaseless([list(i) for i in hdrItems])
|
||||
|
Loading…
Reference in New Issue
Block a user