]> granicus.if.org Git - curl/commitdiff
file:// fix that prevents name lookup and sets no-upload and no-download
authorDaniel Stenberg <daniel@haxx.se>
Thu, 14 Sep 2000 10:41:07 +0000 (10:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Sep 2000 10:41:07 +0000 (10:41 +0000)
lib/url.c

index cc123fee4ec44dddd8ff4780153160de91392e8b..4b67717a95a721558c448fb58482adce2254744a 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1018,6 +1018,11 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect)
 
     conn->curl_do = file;
     /* no done() function */
+
+    result = Transfer(conn, -1, -1, FALSE, NULL, /* no download */
+                      -1, NULL); /* no upload */
+
+    return CURLE_OK;
   }
 
   else {