We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a20d6a8 commit 75f477eCopy full SHA for 75f477e
spec/lib/redacting_logger_spec.rb
@@ -165,6 +165,11 @@
165
case: "redacts authorization bearer token",
166
message: '-H "Authorization: Bearer ab123456789a1abcd1~_.-+456ABCDE=" -H "Content-Type: application/json"',
167
expected_message: '-H "[REDACTED]" -H "Content-Type: application/json"'
168
+ },
169
+ {
170
+ case: "redacts authorization bearer token with case insensitivity",
171
+ message: '-H "authorizAtion: beaRer ab123456789a1abcd1~_.-+456ABCDE=" -H "Content-Type: application/json"',
172
+ expected_message: '-H "[REDACTED]" -H "Content-Type: application/json"'
173
}
174
].each do |test|
175
it "redacts #{test[:case]}" do
0 commit comments