diff options
Diffstat (limited to 'tests/t0105-plain.sh')
| -rwxr-xr-x | tests/t0105-plain.sh | 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 2 insertions, 2 deletions
diff --git a/tests/t0105-plain.sh b/tests/t0105-plain.sh index 2fbe87f..4041d98 100755 --- a/tests/t0105-plain.sh +++ b/tests/t0105-plain.sh @@ -14,7 +14,7 @@ test_expect_success 'generate foo/plain/file-1' ' test_expect_success 'a text file is served as text/plain' ' head -n 1 tmp | grep "Status: 200 OK" && - sed "/^$/q" tmp | grep "Content-Type: text/plain" + sed "/^$/q" tmp | grep "^Content-Type: text/plain; charset=UTF-8$" ' test_expect_success 'the body carries the blob byte for byte' ' @@ -43,7 +43,7 @@ test_expect_success 'a blob whose bytes look binary is served as octet-stream' ' git commit -m binary ) && cgit_url "foo/plain/blob.bin" >tmp && - sed "/^$/q" tmp | grep "Content-Type: application/octet-stream" + sed "/^$/q" tmp | grep "^Content-Type: application/octet-stream$" ' test_done |
