Skip to content

Commit 5909493

Browse files
committed
Add tests for missing headers
1 parent 0e805d5 commit 5909493

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

appsec/tests/integration/src/test/groovy/com/datadog/appsec/php/integration/CommonTests.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ trait CommonTests {
241241
assert span.metrics."_dd.appsec.enabled" == 1.0d
242242
assert respContentType != null && respContentType.length() > 0
243243
assert span.meta."http.response.headers.content-type" == respContentType
244+
assert span.meta."http.response.headers.content-encoding" == 'foobar'
245+
assert span.meta."http.response.headers.content-language" == 'en'
244246
}
245247

246248
@Test

appsec/tests/integration/src/test/www/base/public/hello.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
header('Content-Encoding: foobar');
3+
header('Content-Language: en');
4+
25
$content = "Hello world!";
36

47
echo $content;

0 commit comments

Comments
 (0)