aboutsummaryrefslogtreecommitdiff
path: root/test/Spec.hs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-08 18:59:47 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-08 18:59:47 +0100
commit6c41185fd189de4242749b6dd787099a37270c68 (patch)
treef9390b518728507227632a5d29ff93ab29b3f470 /test/Spec.hs
parentc2827483f9d92c7abbc71a93c5a7607642826f1c (diff)
downloadCana-6c41185fd189de4242749b6dd787099a37270c68.tar.gz
Cana-6c41185fd189de4242749b6dd787099a37270c68.tar.bz2
Cana-6c41185fd189de4242749b6dd787099a37270c68.zip
reply 59 on proxy requestsHEADmaster
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 'test/Spec.hs')
0 files changed, 0 insertions, 0 deletions