Skip to content

Commit

Permalink
Fix stack trace causing request blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
vpellan committed Jan 17, 2025
1 parent e50bcb3 commit 8d05d95
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/graphql/reactive/multiplex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.subscribe(engine, context)
next if result.status != :match

yield result
throw(:block, true) unless result.actions.empty?
throw(:block, true) if result.actions.include?('block')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/rack/reactive/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def self.subscribe(engine, context)
next if result.status != :match

yield result
throw(:block, true) unless result.actions.empty?
throw(:block, true) if result.actions.include?('block')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/rack/reactive/request_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def self.subscribe(engine, context)
next if result.status != :match

yield result
throw(:block, true) unless result.actions.empty?
throw(:block, true) if result.actions.include?('block')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/rack/reactive/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.subscribe(engine, context)
next if result.status != :match

yield result
throw(:block, true) unless result.actions.empty?
throw(:block, true) if result.actions.include?('block')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/rails/reactive/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.subscribe(engine, context)
next if result.status != :match

yield result
throw(:block, true) unless result.actions.empty?
throw(:block, true) if result.actions.include?('block')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/sinatra/reactive/routed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def self.subscribe(engine, context)
next if result.status != :match

yield result
throw(:block, true) unless result.actions.empty?
throw(:block, true) if result.actions.include?('block')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/monitor/reactive/set_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.subscribe(engine, context)
next if result.status != :match

yield result
throw(:block, true) unless result.actions.empty?
throw(:block, true) if result.actions.include?('block')
end
end
end
Expand Down

0 comments on commit 8d05d95

Please sign in to comment.