about summary refs log tree commit diff
path: root/src/database/file/mod.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-09-27 17:39:43 +0300
committerVika <vika@fireburn.ru>2021-09-27 17:39:43 +0300
commit5e291ca70ca2712696fa5378894e4204679a5f7d (patch)
treeeed78a230982e6cc394dc47daa304ef8ace3f1ac /src/database/file/mod.rs
parentf894d1746b94d60cd22260b933948f4169ece9ae (diff)
Fix a bug in the error middleware
When an error is found, the site name passed to Storage::get_setting
in the error handler is incorrect. The ASCII serialisation of the
hostname should get used.
Diffstat (limited to 'src/database/file/mod.rs')
-rw-r--r--src/database/file/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database/file/mod.rs b/src/database/file/mod.rs
index 82987b5..78b67fb 100644
--- a/src/database/file/mod.rs
+++ b/src/database/file/mod.rs
@@ -440,6 +440,7 @@ impl Storage for FileStorage {
     }
 
     async fn get_setting<'a>(&self, setting: &'a str, user: &'a str) -> Result<String> {
+        log::debug!("User for getting settings: {}", user);
         let url = http_types::Url::parse(user).expect("Couldn't parse a URL");
         let mut path = relative_path::RelativePathBuf::new();
         path.push(url.origin().ascii_serialization());