We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6652052 commit 677bca5Copy full SHA for 677bca5
sentry_sdk/spotlight.py
@@ -78,11 +78,11 @@ def capture_envelope(self, envelope):
78
'<script>window.__spotlight = {{ initOptions: {{ fullPage: true, startFrom: "/errors/{event_id}" }}}};</script>\n'
79
)
80
CHARSET_PREFIX = "charset="
81
- BODY_CLOSE_TAG = "</body>"
82
- BODY_CLOSE_TAG_POSSIBILITIES = [
83
- "".join(chars)
84
- for chars in product(*zip(BODY_CLOSE_TAG.upper(), BODY_CLOSE_TAG.lower()))
85
- ]
+ BODY_TAG_NAME = "body"
+ BODY_CLOSE_TAG_POSSIBILITIES = tuple(
+ "</{}>".format("".join(chars))
+ for chars in product(*zip(BODY_TAG_NAME.upper(), BODY_TAG_NAME.lower()))
+ )
86
87
class SpotlightMiddleware(MiddlewareMixin): # type: ignore[misc]
88
__spotlight_script = None # type: Optional[str]
0 commit comments