summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-10-22 03:00:04 +0000
committereadler <eadler@FreeBSD.org>2012-10-22 03:00:04 +0000
commite82cfe8e3006fa9ec6e0f1cf5bfc82b3668f5dda (patch)
treefde0894fd0af403d88be85ee1cfbd603afd8801f
parentd346e8cbc12d5b2bf93a06ba092d4b66d5613bb6 (diff)
downloadFreeBSD-src-e82cfe8e3006fa9ec6e0f1cf5bfc82b3668f5dda.zip
FreeBSD-src-e82cfe8e3006fa9ec6e0f1cf5bfc82b3668f5dda.tar.gz
Be a bit more lenient in the maximum number of redirects allowed.
Chrome and Firefox have a limit of 20. IE has a limit of 8. Reviewed by: des Approved by: cperciva MFC after: 3 days
-rw-r--r--lib/libfetch/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 97fe47c..d10e644 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -94,7 +94,7 @@ __FBSDID("$FreeBSD$");
#include "httperr.h"
/* Maximum number of redirects to follow */
-#define MAX_REDIRECT 5
+#define MAX_REDIRECT 20
/* Symbolic names for reply codes we care about */
#define HTTP_OK 200
OpenPOWER on IntegriCloud