all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Avoid a redirect loop in url-http
@ 2007-04-10  3:05 Diane Murray
  2007-04-12  4:18 ` Chong Yidong
  0 siblings, 1 reply; 7+ messages in thread
From: Diane Murray @ 2007-04-10  3:05 UTC (permalink / raw)
  To: emacs-devel

On occasion url-http gets stuck in an endless redirect loop.  This can
be fixed by simply checking if the number of redirected URLs in
`url-callback-arguments' hasn't gone over a certain number (which
could be a customizable variable).  If it has been redirected too many
times, rather than call `url-retrieve-internal' again,
`url-http-parse-headers' should just let the callback function get
activated - after adding a redirect error to `url-callback-arguments',
so that the callback knows that the maximum number of redirects was
reached.

I've fixed this on my system, but I'm not including the changes I
made.  I'm currently waiting to get the Emacs copyright release form
(the FSF copyright-clerk has confirmed that the papers will be sent),
and by the time I receive the papers, sign them, and return them, they
probably wouldn't arrive back before the tentative release date for
Emacs 22.  If you'd like me to send my patch, please let me know.

--
Diane Murray

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-13 15:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-10  3:05 Avoid a redirect loop in url-http Diane Murray
2007-04-12  4:18 ` Chong Yidong
2007-04-12 10:25   ` Kim F. Storm
2007-04-12 13:42   ` Diane Murray
2007-04-12 15:48     ` Chong Yidong
2007-04-13 12:36       ` Diane Murray
2007-04-13 15:00         ` Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.