agate

Simple gemini server for static files
git clone https://github.com/mbrubeck/agate.git
Log | Files | Refs | README

commit 7d88029e2238471ec25e78aad8b98459ea16590b
parent 578adab62971173d20609a73aa5b78af8d3358e1
Author: Michael Nordmeyer <michaelnordmeyer@users.noreply.github.com>
Date:   Wed,  5 Jul 2023 12:03:34 +0200

Fixes typos

Diffstat:
Mcontent/index.gmi | 2++
Msrc/main.rs | 2+-
Msrc/metadata.rs | 2+-
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/content/index.gmi b/content/index.gmi @@ -119,6 +119,7 @@ Agate will use this MIME type instead of what it would guess, if the file is fou If a line violates the format or looks like case 3, but is incorrect, it might be ignored. You should check your logs. Please know that this configuration file is first read when a file from the respective directory is accessed. So no log messages after startup does not mean the `.meta` file is okay. Such a configuration file might look like this: + ``` # This line will be ignored. **/*.de.gmi: ;lang=de @@ -129,6 +130,7 @@ gone.gmi: 52 This file is no longer here, sorry. ``` If this is the `.meta` file in the content root directory and the `-C` flag is used, this will result in the following response headers: + ``` `/` or `/index.gmi` -> `20 text/gemini;lang=en-GB` diff --git a/src/main.rs b/src/main.rs @@ -740,7 +740,7 @@ where .add(b'{') .add(b'}'); - // check if directory listing is enabled by geting preamble + // check if directory listing is enabled by getting preamble let preamble = if let Ok(txt) = std::fs::read_to_string(path.join(".directory-listing-ok")) { txt diff --git a/src/metadata.rs b/src/metadata.rs @@ -218,7 +218,7 @@ impl FileOptions { /// Get the metadata for the specified file. This might need to (re)load a /// single sidecar file. /// The file path should consistenly be either absolute or relative to the - /// working/content directory. If inconsisten file paths are used, this can + /// working/content directory. If inconsistent file paths are used, this can /// lead to loading and storing sidecar files multiple times. pub fn get(&mut self, file: &Path) -> PresetMeta { self.update(file);