From cfdcae4bc75fba04b9864cae18e0bbe66b8655b9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 19 Aug 2006 21:18:36 +0000 Subject: Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPE command on subsequent requests on a re-used connection unless it has to. --- lib/http_chunks.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/http_chunks.c') diff --git a/lib/http_chunks.c b/lib/http_chunks.c index 63e136cb7..30112f2b8 100644 --- a/lib/http_chunks.c +++ b/lib/http_chunks.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2005, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2006, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -190,7 +190,7 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, case IDENTITY: #endif if(!k->ignorebody) - result = Curl_client_write(conn->data, CLIENTWRITE_BODY, datap, + result = Curl_client_write(conn, CLIENTWRITE_BODY, datap, piece); #ifdef HAVE_LIBZ break; @@ -198,14 +198,14 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, case DEFLATE: /* update conn->keep.str to point to the chunk data. */ conn->keep.str = datap; - result = Curl_unencode_deflate_write(conn->data, &conn->keep, + result = Curl_unencode_deflate_write(conn, &conn->keep, (ssize_t)piece); break; case GZIP: /* update conn->keep.str to point to the chunk data. */ conn->keep.str = datap; - result = Curl_unencode_gzip_write(conn->data, &conn->keep, + result = Curl_unencode_gzip_write(conn, &conn->keep, (ssize_t)piece); break; @@ -303,7 +303,7 @@ CHUNKcode Curl_httpchunk_read(struct connectdata *conn, return CHUNKE_STOP; } else { - Curl_client_write(conn->data, CLIENTWRITE_HEADER, + Curl_client_write(conn, CLIENTWRITE_HEADER, conn->trailer, conn->trlPos); } ch->state = CHUNK_TRAILER; -- cgit v1.2.3