all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* url-auth error when URL has no path
@ 2007-10-12  3:14 Diane Murray
  2007-10-13  3:05 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Diane Murray @ 2007-10-12  3:14 UTC (permalink / raw
  To: emacs-devel

An error occurs when trying to retrieve an http URL with a host but no
path (no trailing slash) after a successful authentication was made on
the host, including a path, earlier in the session.  The following
patch deals with this.


2007-10-12  Diane Murray  <disumu@x3y2z1.net>

	* url-auth.el (url-basic-auth): Set path to "/" when URL has an
	empty string filename.


*** url-auth.el	10 Aug 2007 18:46:27 +0200	1.13.2.3
--- url-auth.el	12 Oct 2007 01:40:25 +0200	
***************
*** 74,79 ****
--- 74,80 ----
      (setq server (format "%s:%d" server port)
  	  path (cond
  		(realm realm)
+ 		((string= "" path) "/")
  		((string-match "/$" path) path)
  		(t (url-basepath path)))
  	  byserv (cdr-safe (assoc server

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

* Re: url-auth error when URL has no path
  2007-10-12  3:14 url-auth error when URL has no path Diane Murray
@ 2007-10-13  3:05 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2007-10-13  3:05 UTC (permalink / raw
  To: Diane Murray; +Cc: emacs-devel

Diane Murray wrote:

> 2007-10-12  Diane Murray  <disumu@x3y2z1.net>
>
> 	* url-auth.el (url-basic-auth): Set path to "/" when URL has an
> 	empty string filename.

Thanks; installed.

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

end of thread, other threads:[~2007-10-13  3:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12  3:14 url-auth error when URL has no path Diane Murray
2007-10-13  3:05 ` Glenn Morris

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.