aboutsummaryrefslogtreecommitdiff
tag namev0.2.1 (fa1509df743355e2171e2e95db2ce65d39a8cb19)
tag date2021-04-26 06:44:32 -0400
tagged byAdnan Maolood <[email protected]>
tagged objectcommit 1170e007d4...
downloadarchived-go-gemini-0.2.1.tar.xz
archived-go-gemini-0.2.1.zip
Version 0.2.1 is released!
Version 0.2.1 fixes a few bugs and makes a few changes. A panic caused by an out-of-bounds slice access in FileServer was fixed. Users of FileServer should upgrade to avoid any issues. The FileServer redirection code has been improved and now redirects to the canonical path in more cases. The ServeContent function has been removed as it does not provide much useful functionality. Users should use ResponseWriter.SetMediaType and io.Copy instead. The ServeFile function no longer takes a Request argument and will no longer perform any checks of the request URL or redirections. Users of are expected to sanitize the file name before providing it to ServeFile. For redirection to canonical paths, use FileServer. An issue where wrapping a ResponseWriter with LoggingMiddleware would cause an empty meta to be written was fixed. Adnan Maolood (6): fs: Fix panic on indexing URL of zero length LoggingMiddleware: Prevent writing empty meta fs: Remove ServeContent function fs: Refactor fs: Improve redirect behavior fs: Avoid equality check if lengths don't match