[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: url-encode-url: do not add a trailing slash for "bare" URLs (with no
From: |
Bastien |
Subject: |
Re: url-encode-url: do not add a trailing slash for "bare" URLs (with no file/directory) |
Date: |
Thu, 13 Mar 2014 14:50:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> OKay, but the patch does not really change the output of
>> (url-encode-url "http://www.gnu.org#"), except the for trailing slash.
>
> But it changes the output of (url-encode-url "http://www.gnu.org/#foo"),
> doesn't it.
No it doesn't.
With and without my patch, it produces "http://www.gnu.org/#foo" as
expected.
> And it changes it from one that works with curl to one that
> doesn't work with curl, right?
No: curl can't parse http://www.gnu.org#foo (while firefox can).
> I personally find http://www.gnu.org more weird than
> http://www.gnu.org/
To be more precise, I find it weird that `url-encode-url' _adds_
something that is not needed.
--
Bastien