We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4c6599 commit 156c506Copy full SHA for 156c506
1 file changed
debug_toolbar/middleware.py
@@ -74,10 +74,8 @@ async def dispatch(
74
content_type = response.headers.get("Content-Type", "")
75
is_html = content_type.startswith("text/html")
76
77
- if (
78
- not (is_html or content_type == "application/json")
79
- or "gzip" in response.headers.get("Accept-Encoding", "")
80
- or request.scope.get("endpoint") is None
+ if not (is_html or content_type == "application/json") or (
+ "gzip" in response.headers.get("Accept-Encoding", "")
81
):
82
return response
83
0 commit comments