pgorman / gneto Goto Github PK
View Code? Open in Web Editor NEWGneto is a personal HTTP proxy for the Gemini protocol
License: GNU General Public License v3.0
Gneto is a personal HTTP proxy for the Gemini protocol
License: GNU General Public License v3.0
Thanks for this very useful software - I use it to read Gemini capsules on a Kindle (by adding a custom CSS). There appears to be an issue with proxying links with escaped URL parameters, e.g. click on any topic here via gneto:
gemini://tobykurien.com/cgi-bin/mailing_list.py
The topic doesn't display as the parameters aren't passed correctly (perhaps something to do with the escaped ?
). I noticed a similar issue with Vulpes proxy, although Mozz.us proxy works.
Gemini does queries slightly differently than Go's stdlib can provide. Use these funcs instead, which are included in go-gemini and the other go-gemini.
// QueryEscape provides URL query escaping in a way that follows the Gemini spec.
// It is the same as url.PathEscape, but it also replaces the +, because Gemini
// requires percent-escaping for queries.
func QueryEscape(query string) string {
return strings.ReplaceAll(url.PathEscape(query), "+", "%2B")
}
// QueryUnescape is the same as url.PathUnescape
func QueryUnescape(query string) (string, error) {
return url.PathUnescape(query)
}
The reason this is required is because Gemini does not allow pluses to be used for spaces in queries. They always represent a literal plus sign.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.