Commits


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


add some slashes to avoid redirects


don't start if the keymap is empty


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.


initialize all the queues


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.


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