summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fdb0c36)
raw | patch | inline | side by side (parent: fdb0c36)
author | Jakub Narebski <jnareb@gmail.com> | |
Thu, 29 Oct 2009 22:07:41 +0000 (23:07 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 30 Oct 2009 23:34:49 +0000 (16:34 -0700) |
Save HTTP headers into gitweb.headers, and the body of message into
gitweb.body in gitweb_run()
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb.body in gitweb_run()
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/gitweb-lib.sh | patch | blob | history |
diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh
index 845253274b72e18a72858104a59ea32c9da0a862..32b841dd2ea0325c31d8fb52e8fdb6a61fb3af3a 100644 (file)
--- a/t/gitweb-lib.sh
+++ b/t/gitweb-lib.sh
rm -f gitweb.log &&
perl -- "$SCRIPT_NAME" \
>gitweb.output 2>gitweb.log &&
+ sed -e '/^\r$/q' <gitweb.output >gitweb.headers &&
+ sed -e '1,/^\r$/d' <gitweb.output >gitweb.body &&
if grep '^[[]' gitweb.log >/dev/null 2>&1; then false; else true; fi
# gitweb.log is left for debugging
- # gitweb.output is used to parse http output
+ # gitweb.output is used to parse HTTP output
+ # gitweb.headers contains only HTTP headers
+ # gitweb.body contains body of message, without headers
}
. ./test-lib.sh