1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-21 13:15:38 +02:00

Fix async web::Data factory handling

This commit is contained in:
Nikolay Kim
2019-04-23 21:21:49 -07:00
parent 9702b2d88e
commit 898ef57080
4 changed files with 69 additions and 6 deletions

View File

@@ -162,7 +162,7 @@ where
}
}
if self.endpoint.is_some() {
if self.endpoint.is_some() && self.data.is_empty() {
Ok(Async::Ready(AppInitService {
service: self.endpoint.take().unwrap(),
rmap: self.rmap.clone(),