CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/09/13 11:03:42

Modified files:
        usr.bin/mandoc : cgi.c 

Log message:
Allow man.cgi(8) to cope with compressed manual pages.

While we don't do that on man.openbsd.org and while i doubt whether
saving a small amount of disk space on a web server is worth consuming
additional CPU time over and over again when the page is served,
some public servers on the Internet run the mandoc man.gi(8) and
serve from gzipped pages, and it's surprisingly easy to implement
because the internal API function mparse_open() already encapsulates
the required logic.

Based on a patch from Duncan Overbruck <[email protected]>,
tweaked by me to correctly free the mchars and mparse objects
in the error path.

Reply via email to