summaryrefslogtreecommitdiff
path: root/lisp/url/url-auth.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/url/url-auth.el')
-rw-r--r--lisp/url/url-auth.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/url/url-auth.el b/lisp/url/url-auth.el
index e48a4e293bd..60239ba76ac 100644
--- a/lisp/url/url-auth.el
+++ b/lisp/url/url-auth.el
@@ -74,6 +74,7 @@ instead of the pathname inheritance method."
(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