mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-28 01:52:57 +01:00
Merge branch 'master' of github.com:actix/actix-web
This commit is contained in:
commit
dffb7936fb
@ -86,7 +86,7 @@ impl HttpResponse {
|
|||||||
HttpResponsePool::with_body(status, body.into())
|
HttpResponsePool::with_body(status, body.into())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Constructs a error response
|
/// Constructs an error response
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn from_error(error: Error) -> HttpResponse {
|
pub fn from_error(error: Error) -> HttpResponse {
|
||||||
let mut resp = error.cause().error_response();
|
let mut resp = error.cause().error_response();
|
||||||
|
Loading…
Reference in New Issue
Block a user