Commits


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.


fix handling of query part in gopher URLs The computed request was discarded because we passed `path' to make_request. Passing NULL here makes the net proc use our computed request string. There was an error in the computed request btw, where \r\n were strcpy'd instead of cat'd.


[gopher] prevent crash on malformed item lines initialize selector, address and port to "" to prevent a NUL deferencing on emit_line


capitalize Engine for consistency