From 7682658a6d9a0e167fe22debcbee77522b42be92 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 19 Jan 2023 19:39:31 -0500 Subject: protocol: add about uri scheme --- protocol/about.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 protocol/about.py (limited to 'protocol') diff --git a/protocol/about.py b/protocol/about.py new file mode 100644 index 0000000..cc308f9 --- /dev/null +++ b/protocol/about.py @@ -0,0 +1,10 @@ +class AboutProtocol(): + def get(url): + page = url.split(':')[1] + if page == 'about': + return ('text/gemini', [ + '=>about:about\n', + '=>about:blank\n', + ]) + elif page == 'blank': + return ('text/plain',[]) -- cgit 1.4.1