cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Stray CRLF in chunk-encoded content-free request bodies

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 26 Nov 2012 15:43:39 +0100 (CET)

On Mon, 26 Nov 2012, Fabian Keil wrote:

> The problem seems to be that curl doesn't properly chunk-encode content-free
> request bodies and sends "CR LF 0 CR LF CR LF" instead of "0 CR LF CR LF"
> ("last-chunk" + CR LF).
>
> The tests work without Privoxy because they expect the stray CR LF at the
> beginning of the body.
>
> The attached patch fixes this.

Ouch. Lovely catch and thanks for the fix! I've applied and pushed your patch.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-26