diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-02 18:31:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-02 18:31:02 +0200 |
commit | 9634e8a7d545283c662992d4d3e4a1bcd557c055 (patch) | |
tree | 27f4c28df020a40cce6ae93f9e38e8b8dfa71961 | |
parent | 029bd187bdad5bfd7771ed356e633e8ec8044d2e (diff) | |
download | busybox-w32-9634e8a7d545283c662992d4d3e4a1bcd557c055.tar.gz busybox-w32-9634e8a7d545283c662992d4d3e4a1bcd557c055.tar.bz2 busybox-w32-9634e8a7d545283c662992d4d3e4a1bcd557c055.zip |
wget: fix fetching of https URLs without http proxy
The "fix fetching of https URLs with http proxy" commit
broke the usual http-to-https redirect:
$ wget http://busybox.net/downloads/busybox-1.29.0.tar.bz2
Connecting to busybox.net (140.211.167.122:80)
Connecting to busybox.net (140.211.167.122:443)
wget: server returned error: HTTP/1.1 400 Bad Request
Fixing...
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/wget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c index 8103aacee..33c93bad3 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -1335,6 +1335,7 @@ However, in real world it was observed that some web servers | |||
1335 | /* server.user remains untouched */ | 1335 | /* server.user remains untouched */ |
1336 | free(server.allocated); | 1336 | free(server.allocated); |
1337 | server.allocated = NULL; | 1337 | server.allocated = NULL; |
1338 | server.protocol = target.protocol; | ||
1338 | server.host = target.host; | 1339 | server.host = target.host; |
1339 | /* strip_ipv6_scope_id(target.host); - no! */ | 1340 | /* strip_ipv6_scope_id(target.host); - no! */ |
1340 | /* we assume remote never gives us IPv6 addr with scope id */ | 1341 | /* we assume remote never gives us IPv6 addr with scope id */ |