Skip to content

Commit f1c91e4

Browse files
committed
Change back the Route extraction for not-found Rails routes
1 parent da7424f commit f1c91e4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/datadog/appsec/api_security/route_extractor.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def self.route_pattern(request)
6262
.recognize(request) { |route, _| break route.path.spec.to_s }
6363

6464
# NOTE: If rails is unable to recognize request it returns empty Array
65-
# We want to return nil in that case to skip this request in the Sampler
6665
pattern = nil if pattern&.empty?
6766

6867
# NOTE: If rails can't recognize the request, we are going to fallback

0 commit comments

Comments
 (0)