Commit Briefs

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.


Omar Polo

initialize all the queues


Omar Polo

new_tab: allow to add the tab after a current one

this allows cmd_push_button_new_tab to open the new tab right *after* the current one, instead that always at the end.


Omar Polo

fix redirect & history

the reload command doesn't push the current url to the history anymore.




Omar Polo

small tweaks