diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-30 08:32:09 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-30 08:32:09 +0300 |
commit | 2f24e9404c2c01251826e98286dab5df7d9e5ce7 (patch) | |
tree | b853f06b14744eb0843da1c4c51a40695d036428 /src/gmutil.c | |
parent | 5a29dceb33d08c1d8d0c4e5bb28d62129e895a0c (diff) |
Maximum number of redirects
Stop opening links automatically after five redirects.
Diffstat (limited to 'src/gmutil.c')
-rw-r--r-- | src/gmutil.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c index 41f0dd20..131734b2 100644 --- a/src/gmutil.c +++ b/src/gmutil.c | |||
@@ -232,6 +232,11 @@ static const struct { | |||
232 | "Redirect to Non-Gemini URL", | 232 | "Redirect to Non-Gemini URL", |
233 | "The server attempted to redirect us to a non-Gemini URL. Here is the link so you " | 233 | "The server attempted to redirect us to a non-Gemini URL. Here is the link so you " |
234 | "can open it manually if appropriate."} }, | 234 | "can open it manually if appropriate."} }, |
235 | { tooManyRedirects_GmStatusCode, | ||
236 | { 0x27a0, /* dashed arrow */ | ||
237 | "Too Many Redirects", | ||
238 | "You may be stuck in a redirection loop. The next redirected URL is below if you " | ||
239 | "want to continue manually."} }, | ||
235 | { temporaryFailure_GmStatusCode, | 240 | { temporaryFailure_GmStatusCode, |
236 | { 0x1f50c, /* electric plug */ | 241 | { 0x1f50c, /* electric plug */ |
237 | "Temporary Failure", | 242 | "Temporary Failure", |