cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTP chunked trailer conversion for non-ASCII platforms

From: David McCreedy <mccreedytpf_at_msn.com>
Date: Tue, 16 Jan 2007 00:08:11 +0000

My previous HTTP patch for non-ASCII platforms didn't convert the right
buffer for trailers on chunked replies.

My patch (attached and below) switches to the same buffer used by the
Curl_client_write callback for CLIENTWRITE_HEADERs.

Sorry for the mix-up.

-David McCreedy

--- /home/mccreed/curlinux/lib/http_chunks.c 2007-01-15 17:34:25.555883000
-0500
+++ lib/http_chunks.c 2007-01-15 17:12:43.000000000 -0500
@@ -326,8 +326,8 @@
#ifdef CURL_DOES_CONVERSIONS
         /* Convert to host encoding before calling Curl_client_write */
         result = Curl_convert_from_network(conn->data,
- ch->hexbuffer,
- ch->hexindex);
+ conn->trailer,
+ conn->trlPos);
         if(result != CURLE_OK) {
           /* Curl_convert_from_network calls failf if unsuccessful */
           /* Treat it as a bad chunk */

Received on 2007-01-16