aboutsummaryrefslogtreecommitdiff
path: root/lib/http_chunks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-01-16 22:26:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-01-16 22:26:50 +0000
commit8cade952bf053cbcd8993c2df13d8b952d9c2f45 (patch)
tree247a549926e8aa9f56bbb064e3a9e6510e2384b8 /lib/http_chunks.c
parent385e612fa5b7663fc2bc815677b8c27bec2f0fe4 (diff)
David McCreedy fixed a flaw from his previous non-ascii HTTP patch
Diffstat (limited to 'lib/http_chunks.c')
-rw-r--r--lib/http_chunks.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/http_chunks.c b/lib/http_chunks.c
index d9774a2c3..1b03a5569 100644
--- a/lib/http_chunks.c
+++ b/lib/http_chunks.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -324,15 +324,15 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn,
}
else {
#ifdef CURL_DOES_CONVERSIONS
- /* Convert to host encoding before calling Curl_client_write */
- result = Curl_convert_from_network(conn->data,
- ch->hexbuffer,
- ch->hexindex);
- if(result != CURLE_OK) {
- /* Curl_convert_from_network calls failf if unsuccessful */
- /* Treat it as a bad chunk */
- return(CHUNKE_BAD_CHUNK);
- }
+ /* Convert to host encoding before calling Curl_client_write */
+ result = Curl_convert_from_network(conn->data,
+ conn->trailer,
+ conn->trlPos);
+ if(result != CURLE_OK) {
+ /* Curl_convert_from_network calls failf if unsuccessful */
+ /* Treat it as a bad chunk */
+ return(CHUNKE_BAD_CHUNK);
+ }
#endif /* CURL_DOES_CONVERSIONS */
Curl_client_write(conn, CLIENTWRITE_HEADER,
conn->trailer, conn->trlPos);