changeset 77178:54ea4fb072b4

(url-max-redirections): New var.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 13 Apr 2007 14:52:03 +0000
parents 6507b26d615f
children 3aa49a5ae0ce
files lisp/url/url-vars.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/url-vars.el	Fri Apr 13 13:57:02 2007 +0000
+++ b/lisp/url/url-vars.el	Fri Apr 13 14:52:03 2007 +0000
@@ -320,6 +320,12 @@
   "\\`\\([-a-zA-Z0-9+.]+:\\)"
   "A regular expression that will match an absolute URL.")
 
+(defcustom url-max-redirections 30
+  "*The maximum number of redirection requests to honor in a HTTP connection.
+A negative number means to honor an unlimited number of redirection requests."
+  :type 'integer
+  :group 'url)
+
 (defcustom url-confirmation-func 'y-or-n-p
   "*What function to use for asking yes or no functions.
 Possible values are `yes-or-no-p' or `y-or-n-p', or any function that