Przeglądaj źródła

* commented the ftp no_proxy unseting in methods/ftp.cc

Michael Vogt 21 lat temu
rodzic
commit
67073e88fc
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      methods/ftp.cc

+ 4 - 2
methods/ftp.cc

@@ -1098,8 +1098,10 @@ int main(int argc,const char *argv[])
 	 char S[300];
 	 snprintf(S,sizeof(S),"http_proxy=%s",getenv("ftp_proxy"));
 	 putenv(S);
-	 //mvo: why should we unset no_proxy here?
-	 //putenv("no_proxy=");
+	 // mvo: because we switch from ftp to http we have to unset
+	 //      "no_proxy". otherwise the http method would try to 
+	 //      get a ftp url using http (see #283718)
+	 putenv("no_proxy=");
 	 
 	 // Run the http method
 	 string Path = flNotFile(argv[0]) + "http";