Clean up after cherry-picking commits from firecracker

Signed-off-by: YUAN LYU <lyuyuan92@gmail.com>
This commit is contained in:
YUAN LYU
2021-03-27 13:06:48 -04:00
committed by Adrian Catangiu
parent e73f412536
commit 9e6ab4b5ab
6 changed files with 37 additions and 34 deletions

View File

@@ -534,7 +534,10 @@ mod tests {
b"Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT\r\nContent-Length: -55\r\n\r\n"
)
.unwrap_err(),
RequestError::InvalidHeader
RequestError::HeaderError(HttpHeaderError::InvalidValue(
"Content-Length".to_string(),
" -55".to_string()
))
);
let bytes: [u8; 10] = [130, 140, 150, 130, 140, 150, 130, 140, 150, 160];

View File

@@ -134,6 +134,7 @@ impl Display for ConnectionError {
/// Errors pertaining to `HttpRoute`.
#[derive(Debug)]
#[allow(dead_code)]
pub enum RouteError {
/// Handler for http routing path already exists.
HandlerExist(String),