Hi,to me it seems that since our ftp does only support GET requests anyway, a 308 Redirect response can be handled identical to a 301 Redirect. OK?
Christopher
Index: fetch.c
===================================================================
RCS file: /cvs/src/usr.bin/ftp/fetch.c,v
retrieving revision 1.184
diff -u -p -r1.184 fetch.c
--- fetch.c 9 Dec 2019 19:05:06 -0000 1.184
+++ fetch.c 14 Dec 2019 11:10:09 -0000
@@ -834,6 +834,7 @@ noslash:
case 302: /* Found */
case 303: /* See Other */
case 307: /* Temporary Redirect */
+ case 308: /* Moved Permanently */
isredirect++;
if (redirect_loop++ > 10) {
warnx("Too many redirections requested");
--
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
CB07 DA40 B0B6 571D 35E2 0DEF 87E2 92A7 13E5 DEE1
signature.asc
Description: PGP signature
