-- Leo's gemini proxy

-- Connecting to bbs.geminispace.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

GmCapsule v0.7 Released


I've made a few significant fixes in the GmCapsule server, hence the minor version bump. My server (skyjake.fi / geminispace.org) is already running the new version, so maybe I didn't break anything. ๐Ÿคž


CGI: Fixed contents of `PATH_INFO`: it is now URL-decoded and the script path is removed so only the part following the script path is included in the environment variable (RFC 3875, section 4.1.5).

CGI: `bin_root` applies a wildcard to all found CGI executables so `PATH_INFO` can be used.

CGI: `bin_root` looks for executable "index.gmi" files in requested directories to provide the directory index.

Skip the TLS SNI check when request hostname has a literal IP address. (SNI is not supposed to be used with literal addresses.)

Respond with status 53 if an unknown hostname is requested. This helps reveal configuration errors where the correct hostnames are not specified.


The fixes with regard to PATH_INFO may or may not warrant changing your existing CGI programs. Most importantly, the contents are now URL-decoded for you as per the CGI specification, which should make life somewhat easier for your scripts.


#release

Posted in: s/GmCapsule

๐Ÿ•น๏ธ skyjake [mod, sysop]

Apr 13 ยท 4 weeks ago ยท ๐Ÿ‘ gritty, michaelnordmeyer, istvan, tenno-seremel ยท ๐ŸŽ‰ 1


1 Comment


๐Ÿ’Ž istvan ยท Apr 13 at 23:08:

Great update! I did a quick diff to check the fix I'd been applying since 0.5 for files with spaces in the names and looks like the new release finally applied the same so that's cool. Really happy to see default searching for index.gmi in cgi-bin too. Already updated and restarted my server. Thanks for all your work!

-- Response ended

-- Page fetched on Sat May 11 05:03:17 2024