Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion manifests/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,11 @@ manifest:
tests/appsec/test_service_activation_metric.py::TestServiceActivationRemoteConfigMetric: missing_feature
tests/appsec/test_service_activation_metric.py::TestServiceActivationRemoteConfigurationConfigMetric: missing_feature
tests/appsec/test_shell_execution.py::Test_ShellExecution: missing_feature
tests/appsec/test_span_tags_headers.py: bug (APPSEC-61286)
tests/appsec/test_span_tags_headers.py:
- weblog_declaration:
"*": v2.30.0-dev
graphql23: irrelevant
rails42: missing_feature # Old Rack does not support to_ary for content-length computation
tests/appsec/test_suspicious_attacker_blocking.py::Test_Suspicious_Attacker_Blocking: missing_feature
tests/appsec/test_trace_tagging.py::Test_TraceTaggingRules: v2.22.0-dev
tests/appsec/test_trace_tagging.py::Test_TraceTaggingRulesRcCapability: v2.22.0-dev
Expand Down
4 changes: 4 additions & 0 deletions utils/build/docker/ruby/rack/config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ class TraceSamplingMiddleware
end

use TraceSamplingMiddleware
# NOTE: Most of the frameworks rely on Web Server to compute `Content-Length` header.
# But in this case to make it different from Rails and Sinatra we are going
# to provide it.
use Rack::ContentLength
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a separate example, we will pre-compute here a Content-Length header, but rest of the weblogs don't do it as they rely on web-server to compute it


# /flush
module Flush
Expand Down
Loading