We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c4b1cf commit 2483a4aCopy full SHA for 2483a4a
1 file changed
tests/integration.bash
@@ -18,16 +18,20 @@ match() {
18
skipif() {
19
echo "$out" | grep "$@" >/dev/null && echo -n S && skipping=true || return 0
20
}
21
+skipifnot() {
22
+ echo "$out" | grep "$@" >/dev/null && return 0 || echo -n S && skipping=true
23
+}
24
25
# check index endpoint
26
27
curl -v $base/ --compressed
28
match "HTTP/.* 200"
29
match -iE "Content-Type: text/html$"
-match -iE "Content-Encoding: br$"
30
match -iE "Vary: Accept-Encoding$"
31
+skipifnot -iE "Accept-Encoding: (.*, ?)?br(,.*)?$"
32
+match -iE "Content-Encoding: br$"
33
-curl -v $base/ --compressed -H 'Accept-Encoding: gzip, deflate'
34
+curl -v $base/ --compressed -H 'Accept-Encoding: gzip'
35
36
37
match -iE "Content-Encoding: gzip$"
0 commit comments