aboutsummaryrefslogtreecommitdiff
path: root/lib/http_chunks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-08-19 21:18:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-08-19 21:18:36 +0000
commitcfdcae4bc75fba04b9864cae18e0bbe66b8655b9 (patch)
tree2012bd78cd739dddfcd85bdaae543919af7be23f /lib/http_chunks.c
parent74a6921bc454fcbf842a221e95ba5dc09b19049e (diff)
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.
Diffstat (limited to 'lib/http_chunks.c')
-rw-r--r--lib/http_chunks.c10
1 files changed, 5 insertions, 5 deletions
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, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2006, 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
@@ -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;