Skip to content

Commit

Permalink
Do not strip CR when grepping HTTP headers.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pat Thoyts committed Oct 1, 2010
1 parent 3ba9ba8 commit a94114a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/t5560-http-backend-noserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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#*\?}" \
Expand Down
1 change: 1 addition & 0 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ case $(uname -s) in
# no POSIX permissions
# backslashes in pathspec are converted to '/'
# exec does not inherit the PID
test_set_prereq MINGW
;;
*)
test_set_prereq POSIXPERM
Expand Down

0 comments on commit a94114a

Please sign in to comment.