about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTP.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2023-07-30 19:11:11 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2023-07-30 19:19:23 +0000
commit18a6a1720238d4eeff22d886dfb48ed600991f47 (patch)
treec477f8e0a2c116e3eb1cc334558fbc8315df3cf0 /WWW/Library/Implementation/HTTP.c
parent076de2a0041c4c2e01b2d2d401cb2821315e78b9 (diff)
downloadlynx-snapshots-18a6a1720238d4eeff22d886dfb48ed600991f47.tar.gz
snapshot of project "lynx", label v2-9-0dev_12f
Diffstat (limited to 'WWW/Library/Implementation/HTTP.c')
-rw-r--r--WWW/Library/Implementation/HTTP.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index e3c5a4ae..bbcdf5d8 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTP.c,v 1.183 2022/04/01 00:10:19 tom Exp $
+ * $LynxId: HTTP.c,v 1.184 2023/07/23 20:02:58 tom Exp $
  *
  * HyperText Transfer Protocol	- Client implementation		HTTP.c
  * ===========================
@@ -2213,7 +2213,8 @@ static int HTLoadHTTP(const char *arg,
 		 * 305 Use Proxy.
 		 * 306 Set Proxy.
 		 * 307 Temporary Redirect with method retained.
-		 * > 308 is unknown.
+		 * 308 Permanent Redirect
+		 * > 309 is unknown.
 		 */
 		if (no_url_redirection || do_head || keep_mime_headers) {
 		    /*
@@ -2267,7 +2268,7 @@ static int HTLoadHTTP(const char *arg,
 
 		if (server_status == 305 ||
 		    server_status == 306 ||
-		    server_status > 307) {
+		    server_status > 308) {
 		    /*
 		     * Show user the content, if any, for 305, 306, or unknown
 		     * status.  - FM
@@ -2330,7 +2331,8 @@ static int HTLoadHTTP(const char *arg,
 		    }
 
 		    HTProgress(line_buffer);
-		    if (server_status == 301) {		/* Moved Permanently */
+		    if ((server_status == 301) ||	/* Moved Permanently */
+			(server_status == 308)) {	/* Permanent Redirect */
 			if (do_post) {
 			    /*
 			     * Don't make the redirection permanent if we have