diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-01-19 19:39:31 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-01-19 19:39:31 -0500 |
| commit | 7682658a6d9a0e167fe22debcbee77522b42be92 (patch) | |
| tree | a2c44b0f902065bad28624cdf3011f9f5db39ac9 /protocol/about.py | |
| parent | dd3051a14f4f30f0942e01c2652fec0caff5e7e2 (diff) | |
| download | browset-7682658a6d9a0e167fe22debcbee77522b42be92.tar.gz | |
protocol: add about uri scheme
Diffstat (limited to 'protocol/about.py')
| -rw-r--r-- | protocol/about.py | 10 |
1 files changed, 10 insertions, 0 deletions
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',[]) |
