| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
It has caught some minor bugs.
|
| |
|
|
|
|
|
| |
Now we generate a single "ssl" binary for CGI scripts that need OpenSSL
to reduce the output size.
|
| |
|
|
|
|
|
| |
Unfortunately this is unavoidable, as some servers still seem to return
brotli despite our Accept-Encoding header not including it.
|
| |
|
|
|
|
|
| |
I think it works well enough at this point.
If it doesn't, somebody will complain :)
|
| |
|
|
|
|
| |
Long overdue... the API is extremely painful to work with.
|
| |
|
| |
|
|
|
|
| |
Now it only does HTTP/1.1, with Connection: close.
|
|
|
|
| |
not much else is done yet, but it's a start
|
|
|
|
|
|
| |
(also removed unused windows check)
ref. https://todo.sr.ht/~bptato/chawan/50
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now we just pass down the value of n and check errno, plus
readDataLoop/writeDataLoop returns a bool indicating whether it failed.
For now this seems to work OK, but maybe I'll add a better abstraction
in the future.
EOFError is still used for handling failed packets; this is brittle,
and should be replaced once we have a proper buffering mechanism for
them. (That will also let us kill BufStream.)
Unrelated: this also fixes a bug in buffer with cacheId.
|
| |
|
|
|
|
|
| |
This means we can now use about:downloads for downloads.
Plus it shaves off some ks from the distribution.
|
| |
|
|
|
|
| |
heh
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
It isn't really limited to config. It just happens to be in
XDG_CONFIG_HOME because XDG basedirs suck.
(W3M_DIR works similarly.)
|
| |
|
|
|
|
|
| |
* accept quoted-string
* quote values in setContentTypeAttr
|
| |
|
|
|
|
| |
Only glibc starts from the file's beginning with "a+".
|
|
|
|
| |
it should put it after the old items, not before them.
|
|
|
|
| |
makes it easier to hide them
|
|
|
|
|
|
|
|
|
|
| |
Finally it's done. It's basically w3mbookmark, but using Markdown
instead of HTML and in POSIX shell instead of C.
As a bonus, it can also (sort of) import w3mbookmark's output. Well,
at least it worked on my bookmark file, but there is a known issue with
bracket escaping... if it goes wrong, it's simple enough to edit it
manually :P
|
|
|
|
| |
POSIX does not guarantee that an error is negative.
|
|
|
|
|
|
| |
the types are from gopher+.
(not that we support gopher+, but they work anyways if mime.types and
mailcap is configured)
|
|
|
|
| |
no longer needed as we just redirect on wrong dir URLs
|
|
|
|
|
|
| |
It does not have to, according to the standard.
(Slashes before the item selector are still collapsed.)
|
|
|
|
| |
gmifetch did this, but apparently it got lost in the rewrite.
|
| |
|
|
|
|
| |
for consistency
|
| |
|
| |
|
|
|
|
|
|
|
| |
* query, fragment are now strings, not options
* get rid of Host, Path types, now hostname/pathname are strings
* fix ipv4 parsing error case
* in file protocol, fix URL for dirlist without slash with a redirection
|
|
|
|
|
|
|
| |
* add some more env vars to makefile
* remove fpermissive from GCC builds
* update Monoucha
* fix borked seccomp filter length safety check (ugh)
|
| |
|
|
|
|
|
|
| |
also, make gopher2html more lenient, and add some functioning error
handling in our nc clone. (other scripts still have to be updated to
benefit from this)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'm starting to favor dotfiles over XDG basedirs, but there's no reason
why we couldn't have both. So now the search path is:
0. if config was set through -C, use that
1. $CHA_CONFIG_DIR is set -> $CHA_CONFIG_DIR/config.toml
2. $XDG_CONFIG_HOME is set -> $XDG_CONFIG_HOME/chawan/config.toml
3. ~/.config/chawan/config.toml exists -> use that
4. ~/.chawan/config.toml exists -> use that
Notably, this makes it so the default directory is ~/.chawan *if* you
don't have an existing config.toml file. So in that case known_hosts
will be placed in ~/.chawan/known_hosts. However, configurations with a
config in ~/.config/chawan/config.toml continue to work as expected, as
for those the known_hosts file remains inside ~/.config/chawan/.
Finally, I've added a default user CGI directory to reduce friction in
setting CGI up. (Like known_hosts, it's also relative to whatever config
dir you have.)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Just to remove a level of indirection; the libcurl API is annoying to
deal with when you don't even need asynchrony.
It doesn't change anything in actual dependencies, because libcurl uses
libssh2 too - however, now only http depends on libcurl, which makes
reducing it to an optional module feasible.
Still, I've listed libssh2 (along with OpenSSL - long overdue) in the
readme just in case some OS doesn't pull in the headers by default as
a libcurl dependency.
Also, fix some bugs:
* fix missing CWD command in FTP
* resolve directories even if they don't end in /
* allow links without -> in dirlist
|
|
|
|
|
| |
On a second thought, no timeouts for name resolution is fine - and even
if it weren't, it's better implemented in the loader.
|