1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

Render error and return as response body

This commit is contained in:
Nikolay Kim
2019-04-03 19:55:19 -07:00
parent 954fe21751
commit 1e2bd68e83
5 changed files with 27 additions and 22 deletions

View File

@ -867,7 +867,7 @@ fn test_h1_response_http_error_handling() {
// read response
let bytes = srv.load_body(response).unwrap();
assert!(bytes.is_empty());
assert_eq!(bytes, Bytes::from_static(b"failed to parse header value"));
}
#[cfg(feature = "ssl")]
@ -900,7 +900,7 @@ fn test_h2_response_http_error_handling() {
// read response
let bytes = srv.load_body(response).unwrap();
assert!(bytes.is_empty());
assert_eq!(bytes, Bytes::from_static(b"failed to parse header value"));
}
#[test]