diff options
author | Denys Vlasenko | 2018-07-02 18:31:02 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-07-15 14:52:21 +0200 |
commit | 7236b6d717409eb156a19af577b964c8c393dbb2 (patch) | |
tree | fc3ca610dd149fa97aa238b24c78ee55b673d43c /networking/wget.c | |
parent | 10a38174403c44760c1941424f4e540075e59696 (diff) | |
download | busybox-7236b6d717409eb156a19af577b964c8c393dbb2.zip busybox-7236b6d717409eb156a19af577b964c8c393dbb2.tar.gz |
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>
Diffstat (limited to 'networking/wget.c')
-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 8103aac..33c93ba 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -1335,6 +1335,7 @@ However, in real world it was observed that some web servers /* server.user remains untouched */ free(server.allocated); server.allocated = NULL; + server.protocol = target.protocol; server.host = target.host; /* strip_ipv6_scope_id(target.host); - no! */ /* we assume remote never gives us IPv6 addr with scope id */ |