Fixes typos

This commit is contained in:
Michael Nordmeyer 2023-07-05 12:03:34 +02:00 committed by Johann150
parent 578adab629
commit 7d88029e22
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1
3 changed files with 4 additions and 2 deletions

View file

@ -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`

View file

@ -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

View file

@ -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);