t/gitweb-lib: Split HTTP response with non-GNU sed
authorBrian Gernhardt <brian@gernhardtsoftware.com>
Mon, 23 Nov 2009 17:33:42 +0000 (12:33 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Nov 2009 06:26:58 +0000 (22:26 -0800)
commitf74a83fcf04c50e8358c8fb493539af13f9b9aa5
treef9b928c77685ada6f104bbc148533358dd48da93
parentb629275fd02aa07c2630d1a8c8a14011ff164043
t/gitweb-lib: Split HTTP response with non-GNU sed

Recognizing \r in a regex is something GNU sed will do, but other sed
implementation's won't (e.g. BSD sed on OS X).  Instead of two sed
invocations, use a single Perl script to split output into headers
and body.

Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/gitweb-lib.sh