git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/3] t5551-http-fetch: Work around some libcurl versions

From
TTarmigan <tarmigan+git@gmail.com>
Date
Nov 9, 2009, 18:36 UTC
Message-ID
<905315640911091036t21321a54u4a4c20d2b2034ad7@mail.gmail.com>
In-Reply-To
<1257790237-30850-2-git-send-email-spearce@spearce.org>
On Mon, Nov 9, 2009 at 10:10 AM, Shawn O. Pearce <spearce@spearce.org> wrote:
> Some versions of libcurl report their output when GIT_CURL_VERBOSE
> is set differently than other versions do.  At least one variant
> (version unknown but likely pre-7.18.1) reports the POST payload to
> stderr, and omits the blank line after each HTTP request/response.
Yes, my curl is 7.15.5.
Show 15 quoted lines
> @@ -56,6 +52,8 @@ test_expect_success 'clone http repository' '
>        sed -e "
>                s/Q\$//
>                /^[*] /d
> +               /^$/d
> +               /^< $/d
>
>                /^[^><]/{
>                        s/^/> /
> @@ -64,6 +62,8 @@ test_expect_success 'clone http repository' '
>                /^> User-Agent: /d
>                /^> Host: /d
>                s/^> Content-Length: .*/> Content-Length: xxx/
> +               /^00..want /d
> +               /^00.*done/d

Almost. This still needs a '> ' before both of the 00 additions. Changing this and applying 3/3 makes the test pass for me.

Tested-with-modifications-by: Tarmigan <tarmigan+git@gmail.com>
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 3 of 5 in “http-backend: Fix symbol clash on AIX 5.3”
  1. 1/3 http-backend: Fix symbol clash on AIX 5.3Shawn O. Pearce, Nov 9, 2009
  2. 2/3 t5551-http-fetch: Work around some libcurl versionsShawn O. Pearce, Nov 9, 2009
  3. TarmiganNov 9, 2009
  4. 3/3 t5551-http-fetch: Work around broken Accept header in libcurlShawn O. Pearce, Nov 9, 2009
  5. TarmiganNov 9, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.