summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-02-01 03:38:49 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2023-02-04 03:18:16 -0500
commit0945ce4f13292fd0a3e5124a64ffba6b161f5118 (patch)
tree4da66b5a13e77f57e78763a5098b4fedda71850f
parent5aba760f7b6db0279d8f3da1d8f92177dee3b832 (diff)
downloadlighttpd-git-0945ce4f13292fd0a3e5124a64ffba6b161f5118.tar.gz
[tests] adjust outdated opt in tests/lighttpd.conf
adjust outdated setting in tests/lighttpd.conf (modern pdf clients properly handle range requests)
-rw-r--r--tests/lighttpd.conf2
-rwxr-xr-xtests/prepare.sh2
-rwxr-xr-xtests/request.t2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/lighttpd.conf b/tests/lighttpd.conf
index f499d7cf..b4ab4bfa 100644
--- a/tests/lighttpd.conf
+++ b/tests/lighttpd.conf
@@ -79,7 +79,7 @@ setenv.set-response-header = (
"BAR2" => "bar2",
)
-$HTTP["url"] =~ "\.pdf$" {
+$HTTP["url"] == "/range.disabled" {
server.range-requests = "disable"
}
diff --git a/tests/prepare.sh b/tests/prepare.sh
index 688f2f54..557ae77d 100755
--- a/tests/prepare.sh
+++ b/tests/prepare.sh
@@ -48,7 +48,7 @@ touch "${tmpdir}/servers/www.example.org/pages/image.jpg" \
echo "12345" > "${tmpdir}/servers/123.example.org/pages/12345.txt"
echo "12345" > "${tmpdir}/servers/123.example.org/pages/12345.html"
echo "12345" > "${tmpdir}/servers/123.example.org/pages/dummyfile.bla"
-echo "12345" > "${tmpdir}/servers/123.example.org/pages/range.pdf"
+echo "12345" > "${tmpdir}/servers/123.example.org/pages/range.disabled"
cat - <<HERE > "${tmpdir}/servers/123.example.org/pages/100.txt"
123456789
123456789
diff --git a/tests/request.t b/tests/request.t
index 7347f0fa..f56a4300 100755
--- a/tests/request.t
+++ b/tests/request.t
@@ -439,7 +439,7 @@ ok($tf->handle_http($t) == 0, 'GET, Range start out of range');
$t->{REQUEST} = ( <<EOF
-GET /range.pdf HTTP/1.1
+GET /range.disabled HTTP/1.1
Host: 123.example.org
Range: bytes=0-
Connection: close