Commits


move the buffering from the fastcgi layer to the template Reduces the indirection in fcgi.c, starts to make the struct template opaque, simplifies the template usage. All with a net negative :-) reads fine to stsp@ (thanks!)


plug a leak in fcgi_parse_form


fmt


missed insert into the fcgi tree


hide some debugging code behind a DPRINTF


template: fix possible use-after-free and drop the `render' sugar if some of the tp_* function fails, the inner code could free the template too (that's what galileo does), so `tp->tp_ret' would access free'd memory! Instead, add a local variable `tp_ret' to keep track of the return code. While here, drop the `render' shortand that adds the argument call, the template_reset function and adapt the regress.


fix reconfiguration


fix SCRIPT_NAME adjustment


support gemini code 1x


parse the query string too


always initialize the template move the initialization to the proxy creation, and while here move the definition for the functions used by the template to fcgi.c too.


ensure SCRIPT_NAME ends with a '/'


make sure PATH_INFO always start with a '/'


free vars before assigning them prevent a leaks if the server sends some parameter twice


default PATH_INFO to "/" if empty