refactor: trival changes (#41)

- refactor status code
- log remote addr and time in miliseconds
This commit is contained in:
sigoden
2022-06-15 19:57:28 +08:00
committed by GitHub
parent 12aafa00d8
commit 3c4bb77023
4 changed files with 75 additions and 66 deletions

View File

@@ -23,7 +23,7 @@ lazy_static! {
pub fn generate_www_auth(stale: bool) -> String {
let str_stale = if stale { "stale=true," } else { "" };
format!(
"Digest realm=\"{}\",nonce=\"{}\",{}qop=\"auth\",algorithm=\"MD5\"",
"Digest realm=\"{}\",nonce=\"{}\",{}qop=\"auth\"",
REALM,
create_nonce(),
str_stale