Remove all that extension business and replace with internal properties

This commit is contained in:
Lennart
2024-11-05 17:22:48 +01:00
parent 4da0ca34c7
commit d5ef6669a6
21 changed files with 176 additions and 264 deletions

View File

@@ -1,7 +1,6 @@
use actix_web::{http::StatusCode, HttpResponse};
use thiserror::Error;
// use crate::routes::propfind;
use tracing::error;
#[derive(Debug, Error)]
pub enum Error {
@@ -41,6 +40,7 @@ impl actix_web::error::ResponseError for Error {
}
fn error_response(&self) -> HttpResponse {
error!("Error: {self}");
match self {
Error::Unauthorized => HttpResponse::build(self.status_code())
.append_header(("WWW-Authenticate", "Basic"))