Commit Briefs

Omar Polo

sync


Omar Polo

generate directory listings



Omar Polo

sync


Omar Polo

handle file:// URIs


Omar Polo

add make_fs_request


Omar Polo

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.


Omar Polo

add IMSG_GET_FILE imsg type


Omar Polo

correctly serialize file: URIs

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


Omar Polo

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.


Omar Polo

[gopher] prevent crash on malformed item lines

initialize selector, address and port to "" to prevent a NUL deferencing on emit_line


Omar Polo

capitalize Engine for consistency




Omar Polo

replace TAILQ_EMPTY/INSERT_HEAD/TAIL dance with a single TAILQ_INSERT_TAIL

Now that all the queues are correctly initialised, there's no need for that dance.