Skip to content

Commit eedf1ff

Browse files
authored
feat(wsgi): Add sentry.is_localhost for inbound filters
1 parent bfc7e34 commit eedf1ff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎sentry_sdk/integrations/wsgi.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ def __call__(
131131
SPANDATA.SENTRY_IS_LOCALHOST,
132132
_is_localhost(
133133
client_ip=get_client_ip(environ),
134-
url_host=environ.get("SERVER_NAME")
135-
if not environ.get("HTTP_HOST")
136-
else None,
134+
url_host=environ.get("SERVER_NAME"),
137135
host_header=environ.get("HTTP_HOST"),
138136
forwarded_host_header=environ.get("HTTP_X_FORWARDED_HOST"),
139137
),

0 commit comments

Comments
 (0)