From 9832f30360a98ce36dbc5190c8d1d9302c76186f Mon Sep 17 00:00:00 2001 From: hubert Date: Thu, 22 Jul 2021 13:52:49 +0200 Subject: [PATCH] add commented line as place holder --- src/web/repo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web/repo.rs b/src/web/repo.rs index f78f820..3527145 100644 --- a/src/web/repo.rs +++ b/src/web/repo.rs @@ -66,6 +66,7 @@ pub async fn git_main( //auth : BasicAuth, ) -> Result, Vec<(String, String)>>, error::Error> { // let authtorization = auth.ok_or(error::Error::Unauthorized("safe repo".to_string()))?; + //let authorization = auth.and_then(|cred| validator.check_basic(&cred)).ok_or(error::Error::Unauthorized("safe repo".to_string()))?; let rootname = match pathopt { None => {"".to_string()} Some(s) => {