| 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
|
|
|
|
|
| |
This adds a runtime check to packet readers to ensure that all fds have
been read, and switches to seqs for packet writers.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
Nim doesn't consider included files when recompiling C files, which
would sometimes lead to fixes not being compiled in without a clean
build.
|
|
|
|
|
| |
This means we can now use about:downloads for downloads.
Plus it shaves off some ks from the distribution.
|
|
|
|
| |
My bad; not present upstream.
|
| |
|
|
|
|
| |
heh
|
| |
|
| |
|
|
|
|
| |
it's still not quite there yet T_T
|
| |
|
|
|
|
| |
If there is no ( or ), then just skip until the NUL terminator.
|
|
|
|
|
| |
Greatly reduces binary sizes. I won't risk it for protocols yet.
Neither for img, because it doesn't work with sixel at all. (y?)
|
|
|
|
|
|
| |
It works by emitting a base64 URI inside an img tag.
Very inefficient, but useful if no external viewer is set up
(e.g. over SSH).
|
| |
|
| |
|
|
|
|
|
|
|
| |
It isn't really limited to config. It just happens to be in
XDG_CONFIG_HOME because XDG basedirs suck.
(W3M_DIR works similarly.)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix luwrap comparison function
* strip high unicode controls in term/pager
* use wcwidth in dirlist2html
* remove combining category from strwidth
* remove unused "disallowed" field from lineedit
My initial goal with switching to wcwidth in dirlist2html was just to
get rid of the outdated combining map in charwidth_gen. Then I realized
that layout will normalize those out anyway, so we don't actually have
to deal with them anywhere.
Also, I found a few bugs in the process; high unicode control chars not
being stripped out was a particularly bad one, as it allows for pages to
mess up the terminal output. (Easiest way to replicate: just open a
random binary file without this patch.)
|
|
|
|
|
| |
It's still missing a "color visited links" feature, but it's better
than nothing.
|
|
|
|
|
| |
* accept quoted-string
* quote values in setContentTypeAttr
|
|
|
|
|
|
|
| |
this is exactly why I shimmed in unsafeAddr, but the compiler isn't
cooperating... :(
well, it seems to work with auto.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Only for SVG in image tags for now. Plus it comes with NanoSVG's
limitations, i.e. no text. Still, better than nothing.
I've gone through open tickets and PRs at upstream to check for known
security issues. As a recurring theme I found that parseTransform
fails to check the result of parseTransformArgs, so I fixed and
refactored that part. (Probably not a security issue, but still UB.)
Also, I've added a fix for an OOB read in parseColorRGB.
Future directions:
* replace nanosvgrast with our own rasterizer in canvas (will have to be
extended somewhat...)
* add text rendering (with unifont, which canvas already includes)
|
| |
|
|
|
|
| |
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
|