Commit Briefs

Omar Polo

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.


Omar Polo

add an HTML error page


Omar Polo

typo




Omar Polo

quick and dirty URL rewrite to respect SCRIPT_NAME

it's not really bad however


Omar Polo

switch to the escaping function from tmpl.h

it also fixes some issue / limitations of the old htmlescape / printurl.



Omar Polo

missing </dl>




Omar Polo

add the meta viewport for responsive


Omar Polo

refactor proxy_read

- avoid the ugly `goto copy' to jump back to the start - avoid leaking memory


Omar Polo

parse response MIME, check the charset and lang

If the charset is not UTF-8 nor ASCII then we don't know how to handle the body and so rejects it. An abset charset is implied to be utf8, so we're good. In the generated HTML we always use UTF8 charset, which is fine too, since it is a superset of ASCII. Attempt also at saving the lang for later reuse in the generated HTML.