Autodiscover endpoint should be case insensitive (fixes #2440)
This commit is contained in:
@@ -85,6 +85,7 @@ impl ParseHttp for Server {
|
||||
}
|
||||
}
|
||||
|
||||
let todo = "hashify";
|
||||
match path.next().unwrap_or_default() {
|
||||
"jmap" => {
|
||||
match (path.next().unwrap_or_default(), req.method()) {
|
||||
@@ -504,9 +505,12 @@ impl ParseHttp for Server {
|
||||
});
|
||||
}
|
||||
}
|
||||
"autodiscover" => {
|
||||
"autodiscover" | "Autodiscover" => {
|
||||
if req.method() == Method::POST
|
||||
&& path.next().unwrap_or_default() == "autodiscover.xml"
|
||||
&& path
|
||||
.next()
|
||||
.unwrap_or_default()
|
||||
.eq_ignore_ascii_case("autodiscover.xml")
|
||||
{
|
||||
// Limit anonymous requests
|
||||
self.is_http_anonymous_request_allowed(&session.remote_ip)
|
||||
|
||||
@@ -266,14 +266,20 @@ pub fn spawn_housekeeper(inner: Arc<Inner>, mut rx: mpsc::Receiver<HousekeeperEv
|
||||
});
|
||||
}
|
||||
HousekeeperEvent::Exit => {
|
||||
trc::event!(Housekeeper(trc::HousekeeperEvent::Stop));
|
||||
trc::event!(
|
||||
Housekeeper(trc::HousekeeperEvent::Stop),
|
||||
Reason = "Shutdown"
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(None) => {
|
||||
trc::event!(Housekeeper(trc::HousekeeperEvent::Stop));
|
||||
trc::event!(
|
||||
Housekeeper(trc::HousekeeperEvent::Stop),
|
||||
Reason = "Channel closed"
|
||||
);
|
||||
return;
|
||||
}
|
||||
Err(_) => {
|
||||
|
||||
Reference in New Issue
Block a user