summaryrefslogtreecommitdiff
path: root/methods/ftp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r--methods/ftp.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index fafa10534..c115e165d 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1098,6 +1098,9 @@ int main(int argc,const char *argv[])
char S[300];
snprintf(S,sizeof(S),"http_proxy=%s",getenv("ftp_proxy"));
putenv(S);
+ // 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