wget: fix fetching of https URLs without http proxy
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 2 Jul 2018 16:31:02 +0000 (18:31 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 15 Jul 2018 12:52:21 +0000 (14:52 +0200)
commit7236b6d717409eb156a19af577b964c8c393dbb2
treefc3ca610dd149fa97aa238b24c78ee55b673d43c
parent10a38174403c44760c1941424f4e540075e59696
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>
networking/wget.c