cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH 3/3] Remove bogus optimisation of telnet upload.

From: Colin Hogben <curl_at_pythontech.co.uk>
Date: Wed, 4 Jan 2012 11:24:49 +0000

Fix wrongly implemented optimisation of telnet upload, apparently
intended to allow the library to avoid manually polling for input.

---
 src/tool_operate.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/tool_operate.c b/src/tool_operate.c
index bf73479..b284f5f 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -769,9 +769,7 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
         input.config = config;
         my_setopt(curl, CURLOPT_READDATA, &input);
         /* what call to read */
-        if((outfile && !curlx_strequal("-", outfile)) ||
-           !checkprefix("telnet:", this_url))
-          my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb);
+        my_setopt(curl, CURLOPT_READFUNCTION, tool_read_cb);
 
         /* in 7.18.0, the CURLOPT_SEEKFUNCTION/DATA pair is taking over what
            CURLOPT_IOCTLFUNCTION/DATA pair previously provided for seeking */
-- 
1.7.0.4
--------------060605020908010401010200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
--------------060605020908010401010200--
Received on 2001-09-17