diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-08-19 21:18:36 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-08-19 21:18:36 +0000 |
commit | cfdcae4bc75fba04b9864cae18e0bbe66b8655b9 (patch) | |
tree | 2012bd78cd739dddfcd85bdaae543919af7be23f /lib/file.c | |
parent | 74a6921bc454fcbf842a221e95ba5dc09b19049e (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/file.c')
-rw-r--r-- | lib/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/file.c b/lib/file.c index 7415d8a78..7ac53f19b 100644 --- a/lib/file.c +++ b/lib/file.c @@ -311,11 +311,11 @@ CURLcode Curl_file(struct connectdata *conn, bool *done) CURLcode result; snprintf(buf, sizeof(data->state.buffer), "Content-Length: %" FORMAT_OFF_T "\r\n", expected_size); - result = Curl_client_write(data, CLIENTWRITE_BOTH, buf, 0); + result = Curl_client_write(conn, CLIENTWRITE_BOTH, buf, 0); if(result) return result; - result = Curl_client_write(data, CLIENTWRITE_BOTH, + result = Curl_client_write(conn, CLIENTWRITE_BOTH, (char *)"Accept-ranges: bytes\r\n", 0); if(result) return result; @@ -339,7 +339,7 @@ CURLcode Curl_file(struct connectdata *conn, bool *done) tm->tm_hour, tm->tm_min, tm->tm_sec); - result = Curl_client_write(data, CLIENTWRITE_BOTH, buf, 0); + result = Curl_client_write(conn, CLIENTWRITE_BOTH, buf, 0); } return result; } @@ -377,7 +377,7 @@ CURLcode Curl_file(struct connectdata *conn, bool *done) bytecount += nread; - res = Curl_client_write(data, CLIENTWRITE_BODY, buf, nread); + res = Curl_client_write(conn, CLIENTWRITE_BODY, buf, nread); if(res) return res; |