diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0110-snapshot.sh')
-rwxr-xr-xtests/t0110-snapshot.sh6
1 file changed, 3 insertions, 3 deletions
diff --git a/tests/t0110-snapshot.sh b/tests/t0110-snapshot.sh
index ba38b82..4852e7b 100755
--- a/tests/t0110-snapshot.sh
+++ b/tests/t0110-snapshot.sh
@@ -31,7 +31,7 @@ test_tar_snapshot() {
test_expect_success $prereq "check $ext response headers" "
head -n 1 tmp | grep 'Status: 200 OK' &&
- head -n 2 tmp | grep 'Content-Type: $type' &&
+ head -n 2 tmp | grep '^Content-Type: $type\$' &&
head -n 3 tmp | grep 'Content-Disposition: inline; filename=.master.$ext.'
"
@@ -58,7 +58,7 @@ test_expect_success 'get foo/snapshot/master.tar' '
test_expect_success 'check tar response headers' '
head -n 1 tmp | grep "Status: 200 OK" &&
- head -n 2 tmp | grep "Content-Type: application/x-tar" &&
+ head -n 2 tmp | grep "^Content-Type: application/x-tar$" &&
head -n 3 tmp | grep "Content-Disposition: inline; filename=.master.tar."
'
@@ -91,7 +91,7 @@ test_expect_success 'get foo/snapshot/master.zip' '
test_expect_success 'check zip response headers' '
head -n 1 tmp | grep "Status: 200 OK" &&
- head -n 2 tmp | grep "Content-Type: application/zip" &&
+ head -n 2 tmp | grep "^Content-Type: application/zip$" &&
head -n 3 tmp | grep "Content-Disposition: inline; filename=.master.zip."
'