[git commit] wget: allow HTTP 307/308 redirects

Denys Vlasenko vda.linux at googlemail.com
Thu Apr 29 23:42:24 UTC 2021


commit: https://git.busybox.net/busybox/commit/?id=e71ea6c1f84318d8655a5783736288695174f596
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

This resolves failures like

    wget: server returned error: HTTP/1.1 307 Temporary Redirect

Signed-off-by: Jeremy Lin <jeremy.lin at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/wget.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/networking/wget.c b/networking/wget.c
index 3edc5f870..6a9604421 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -1346,6 +1346,8 @@ However, in real world it was observed that some web servers
 		case 301:
 		case 302:
 		case 303:
+		case 307:
+		case 308:
 			break;
 
 		case 206: /* Partial Content */


More information about the busybox-cvs mailing list