mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 02:22:21 +00:00
Remove all that extension business and replace with internal properties
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user