[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

url-auth error when URL has no path

From: Diane Murray
Subject: url-auth error when URL has no path
Date: Fri, 12 Oct 2007 05:14:54 +0200

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  <address@hidden>

        * 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
--- 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]