diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-08 18:59:47 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-08 18:59:47 +0100 |
commit | 6c41185fd189de4242749b6dd787099a37270c68 (patch) | |
tree | f9390b518728507227632a5d29ff93ab29b3f470 /app | |
parent | c2827483f9d92c7abbc71a93c5a7607642826f1c (diff) | |
download | Cana-6c41185fd189de4242749b6dd787099a37270c68.tar.gz Cana-6c41185fd189de4242749b6dd787099a37270c68.tar.bz2 Cana-6c41185fd189de4242749b6dd787099a37270c68.zip |
This makes the server more compliant with what is to be expected and
prevents routes from matching when a wrong scheme is given (such as
https://).
It is not perfect yet, as abusing the route matching function for such
an important property is probably not the best. We also want to
implement other request-sanity-checks (such as port numbers being
given), which would also be better done at a different place.
However, we also don't want to prevent Cana from being used to implement
Gemini proxy servers, so a flag in GeminiServer would probably be nice
("extended URI checks").
Yet - on the completely other hand - allowing that much freedom also
means weird interactions (such as a default vhost, certificate issues,
...), so it is unclear how far we want to go.
Diffstat (limited to 'app')
0 files changed, 0 insertions, 0 deletions