unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Diane Murray <disumu@x3y2z1.net>
To: emacs-devel@gnu.org
Subject: url-auth error when URL has no path
Date: Fri, 12 Oct 2007 05:14:54 +0200	[thread overview]
Message-ID: <87ve9d3txt.fsf@spargel.x3y2z1.net> (raw)

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

             reply	other threads:[~2007-10-12  3:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-12  3:14 Diane Murray [this message]
2007-10-13  3:05 ` url-auth error when URL has no path Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ve9d3txt.fsf@spargel.x3y2z1.net \
    --to=disumu@x3y2z1.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).