diff --git a/src/dev.rs b/src/dev.rs index c533bfd64..0f6e26f7a 100644 --- a/src/dev.rs +++ b/src/dev.rs @@ -10,7 +10,7 @@ pub use ws; pub use httpcodes; pub use application::Application; -pub use httpmessage::{HttpRequest, HttpResponse, IntoHttpResponse}; +pub use httpmessage::{Body, HttpRequest, HttpResponse, IntoHttpResponse}; pub use payload::{Payload, PayloadItem}; pub use router::RoutingMap; pub use resource::{Reply, Resource}; diff --git a/src/lib.rs b/src/lib.rs index 5bdcb0dba..5e87ab460 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,7 @@ pub mod ws; pub mod dev; pub mod httpcodes; pub use application::Application; -pub use httpmessage::{HttpRequest, HttpResponse, IntoHttpResponse}; +pub use httpmessage::{Body, HttpRequest, HttpResponse, IntoHttpResponse}; pub use payload::{Payload, PayloadItem}; pub use router::RoutingMap; pub use resource::{Reply, Resource}; diff --git a/src/router.rs b/src/router.rs index 74083940d..410cb23f7 100644 --- a/src/router.rs +++ b/src/router.rs @@ -138,7 +138,6 @@ impl Router { return app.handle(req, payload) } } - Task::reply(IntoHttpResponse::response(HTTPNotFound, req)) } }