Commits


don't mark about: pages as verified Initially telescope only supported about:* pages and gemini, so it made sense to set TS_VERIFIED on about pages. Now, also various non-tls protocols and TS_UNKNOWN is used more, so is more coherent to use it also for about pages.


reword the license section a bit


improve error reporting


add has_suffix


redirect on directories without slash


skip "." (and ".." if in /)


sync


generate directory listings


group the protocols into the same section; mention about: and file://


sync


handle file:// URIs


add make_fs_request


handle IMSG_GET_FILE: serve local files IMSG_GET_FILE handles a path to a local file. fs now behaves like net, it sends a IMSG_GOT_CODE/META and optionally the file. This also includes a bit of refactoring: the send_file function was extracted from handle_get so it can be used in handle_get_file too.


add IMSG_GET_FILE imsg type


correctly serialize file: URIs file URIs have the two slashes after the protocol even when the hostname is not specified.