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 <sunshine@sunshineco.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Pat Thoyts committed
Sep 12, 2010 at 10:37 UTC
a94114ad3d0fc584dea3ecd508135307882066a9
2 files changed
+3
t/t5560-http-backend-noserver.sh
+2
@@ -5,6 +5,8 @@ test_description='test git-http-backend-noserver'
5
6
HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY"
7
8
+test_have_prereq MINGW && export GREP_OPTIONS=-U
9
+
10
run_backend() {
11
echo "$2" |
12
QUERY_STRING="${1#*\?}" \
t/test-lib.sh
+1
@@ -970,6 +970,7 @@ case $(uname -s) in
970
# no POSIX permissions
971
# backslashes in pathspec are converted to '/'
972
# exec does not inherit the PID
973
+ test_set_prereq MINGW
974
;;
975
*)
976
test_set_prereq POSIXPERM