Commits


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.


include a footer with the original URL


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


inline images


handle non-20 gemini response


close fcgi socket when not marked as keepalive if the server hasn't specified the FCGI_KEEP_CONN bit in the request, close the socket when we're done. This seems to be what httpd(8) (most of the time) wants.


drop debug printf


filter out empty lines


improve gemtext -> html conversion


link the specified stylesheet (if any)


TODO


fix request URL use the matched proxy_name and append the received PATH_INFO. Still undecided wether I should sanitize things here or not.


scaffold the gemtext -> html conversion