diff --git a/mitmproxy/contentviews/query.py b/mitmproxy/contentviews/query.py index fa2f189fa..647805d0f 100644 --- a/mitmproxy/contentviews/query.py +++ b/mitmproxy/contentviews/query.py @@ -15,4 +15,7 @@ class ViewQuery(base.View): return "Query", base.format_text("") def render_priority(self, data: bytes, *, http_message: Optional[http.Message] = None, **metadata) -> float: - return 0.3 * float(bool(getattr(http_message, "query", False))) + return 0.3 * float(bool( + getattr(http_message, "query", False) + and not data + ))