]> Sergey Matveev's repositories - tofuproxy.git/commit
Alternative Gemini's relative URL forming
authorSergey Matveev <stargrave@stargrave.org>
Thu, 18 Apr 2024 07:19:26 +0000 (10:19 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 18 Apr 2024 10:25:58 +0000 (13:25 +0300)
commit3a00064036f01776ec85e205247c31d67cd1123e
tree83a0b699171b971e3f87c92685b5ab9a4a935bb0
parent6561204b15cf817e51351f790601163b6286f181
Alternative Gemini's relative URL forming

Specification clearly states:
    URL may be absolute or relative. If relative, it should be resolved
    against the URL used in the original request.
So "gemini://foo.bar/baz" with "doo" relative URL must give
"gemini://foo.bar/baz/doo" URL. But initial Gemini's Python demo
(https://tildegit.org/solderpunk/gemini-demo-1.git) performs urljoin
call, that will give "gemini://foo.bar/doo". Seems that many gemsites
expect that behaviour from the client.
rounds/gemini.go
version.go