Skip to content

Commit 268eea6

Browse files
namedgraphclaude
andcommitted
Fix gzip HTTP tests: use -D - to avoid binary body, add owner cert for RDF/XML
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2c74d89 commit 268eea6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

http-tests/misc/gzip-rdfxml.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ purge_cache "$FRONTEND_VARNISH_SERVICE"
99

1010
# Test that nginx gzip compression is active for RDF/XML dynamic content
1111

12-
response=$(curl -i -k -s \
12+
response=$(curl -k -s -D - -o /dev/null \
1313
-H "Accept-Encoding: gzip" \
1414
-H "Accept: application/rdf+xml" \
15+
--cert "$OWNER_CERT_FILE:$OWNER_CERT_PWD" \
1516
"$END_USER_BASE_URL")
1617

1718
if ! echo "$response" | grep -qi "Content-Encoding: gzip"; then

http-tests/misc/gzip-sefjson.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
# Test that nginx gzip compression is active for static JSON (SEF file)
55

6-
response=$(curl -i -k -s \
6+
response=$(curl -k -s -D - -o /dev/null \
77
-H "Accept-Encoding: gzip" \
88
"${END_USER_BASE_URL}static/com/atomgraph/linkeddatahub/xsl/client.xsl.sef.json")
99

0 commit comments

Comments
 (0)