Skip to content

Commit cb1c60e

Browse files
🚑 Remove "?" as it is removed by "urljoin"
1 parent acea889 commit cb1c60e

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/otel_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def _url_is_disabled(self, request):
457457
"""
458458
Avoid `request.get_host` to bypass Django's ALLOWED_HOST check
459459
"""
460-
url = "{}://{}{}?".format(
460+
url = "{}://{}{}".format(
461461
request.scheme, request._get_raw_host(), request.path
462462
)
463463
return self._excluded_urls.url_disabled(url)

0 commit comments

Comments
 (0)