diff --git a/CHANGELOG.md b/CHANGELOG.md index 592688e..a35c904 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [3.2.0] - 2021-11-15 Thank you to @balazsbtond and @joseph-marques for contributing to this release. ### Added @@ -301,7 +303,8 @@ Thank you to @m040601 for contributing to this release. ## [1.0.0] - 2020-05-21 -[Unreleased]: https://github.com/mbrubeck/agate/compare/v3.1.3...HEAD +[Unreleased]: https://github.com/mbrubeck/agate/compare/v3.2.0...HEAD +[3.2.0]: https://github.com/mbrubeck/agate/compare/v3.1.3...v3.2.0 [3.1.3]: https://github.com/mbrubeck/agate/compare/v3.1.2...v3.1.3 [3.1.2]: https://github.com/mbrubeck/agate/compare/v3.1.1...v3.1.2 [3.1.1]: https://github.com/mbrubeck/agate/compare/v3.1.0...v3.1.1 diff --git a/Cargo.lock b/Cargo.lock index 1d43d3f..eb4f2d4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "agate" -version = "3.1.3" +version = "3.2.0" dependencies = [ "anyhow", "configparser", diff --git a/Cargo.toml b/Cargo.toml index 20c3bc2..542f8f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "agate" -version = "3.1.3" +version = "3.2.0" authors = ["Matt Brubeck ", "Johann150 "] description = "Very simple server for the Gemini hypertext protocol" keywords = ["server", "gemini", "hypertext", "internet", "protocol"] @@ -9,7 +9,7 @@ repository = "https://github.com/mbrubeck/agate" readme = "README.md" license = "MIT/Apache-2.0" edition = "2018" -exclude = ["/tools", "/.github", "/Cross.toml", "/content", "/CODE_OF_CONDUCT.md", "/CONTRIBUTING.md", "/CHANGELOG.md"] +exclude = ["/tools", "/.github", "/Cross.toml", "/content", "/CODE_OF_CONDUCT.md", "/CONTRIBUTING.md", "/CHANGELOG.md", "/tests"] [dependencies] configparser = "3.0" diff --git a/content/index.gmi b/content/index.gmi index 62e3d24..c8619ff 100644 --- a/content/index.gmi +++ b/content/index.gmi @@ -66,7 +66,8 @@ Agate by default supports TLSv1.2 and TLSv1.3. You can disable support for TLSv1 ### Directory listing You can enable a basic directory listing for a directory by putting a file called `.directory-listing-ok` in that directory. This does not have an effect on sub-directories. -The directory listing will hide files and directories whose name starts with a dot (e.g. the `.directory-listing-ok` file itself or also the `.meta` configuration file). +This file must be UTF-8 encoded text; it may be empty. Any text in the fil will be prepended to the directoy listing. +The directory listing will hide files and directories whose name starts with a dot (e.g. the `.directory-listing-ok` file itself, the `.meta` configuration file, or the `..` directory). A file called `index.gmi` will always take precedence over a directory listing. @@ -198,6 +199,16 @@ The format is based on Keep a Changelog and this project adheres to Semantic Ver => https://keepachangelog.com/en/1.0.0/ Keep a Changelog home page => https://semver.org/spec/v2.0.0.html Semantic versioning standard v2.0.0 +## [3.2.0] - 2021-11-15 +Thank you to @balazsbtond and @joseph-marques for contributing to this release. + +### Added +* you can add header text to a directory listing. See the updated instructions above for details. + +### Fixed +* updated dependencies +* error pages also send close_notify + ## [3.1.3] - 2021-10-25 Thank you to @FoxKyong for contributing to this release.