From 69cc8e35efc64fc7e8146c0dd712ec20da8cb68f Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Sun, 12 Sep 2010 10:37:24 +0100 Subject: [PATCH] Do not strip CR when grepping HTTP headers. By default, MSYS grep reads in text-mode and converts CRLF into LF line endings. For testing HTTP use binary mode (-U) as checking is done for CR in HTTP headers Signed-off-by: Eric Sunshine Signed-off-by: Pat Thoyts --- t/t5560-http-backend-noserver.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/t5560-http-backend-noserver.sh b/t/t5560-http-backend-noserver.sh index eb6f910e7a..406432e7a5 100755 --- a/t/t5560-http-backend-noserver.sh +++ b/t/t5560-http-backend-noserver.sh @@ -5,6 +5,8 @@ test_description='test git-http-backend-noserver' HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY" +test_have_prereq MINGW && export GREP_OPTIONS=-U + run_backend() { echo "$2" | QUERY_STRING="${1#*\?}" \