commit f3d6a0f46238e918e383bca15c76ad96a2c1f50a parent a41b6cb04d4bd18c8a1e1eb54999dfe2e9c5331f Author: Florian Dold <florian.dold@gmail.com> Date: Thu, 10 Dec 2015 17:44:08 +0100 Rationale for canonical base URLs. Diffstat:
| M | wallet.rst | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/wallet.rst b/wallet.rst @@ -27,6 +27,10 @@ When a user enters a URL that is, technically, relative (such as "alice.example. *may* transform it into a canonical base URL ("http://alice.example.com/mint/"). Other components *should not* accept URLs that are not canonical. +Rationale: Joining non-canonical URLs with relative URLs (e.g. "mint.example.com" with "reserve/status") +results in different and slightly unexpected behavior in some URL handling libraries. +Canonical URLs give more predictable results with standard URL joining. + -------------------- Browser based wallet --------------------