Content type negotiation to detect redirection to a HTML page
Misc cleanup
Simplify
Make CGI script work with URLs containing a slash (e.g. news/*)
Merge remote-tracking branch 'github' into HEAD
Use new str.format() rather than printf() formatting
Drop Python 2 workaround; use existing regular expression rather than slicing
Cleanup and simplify; use os.path.splitext()