File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ mod parser;
10
10
mod body;
11
11
mod response;
12
12
13
- use hyper:: method:: Method :: Head ;
14
-
15
13
pub use self :: request:: Head ;
16
14
pub use self :: response:: Response ;
17
15
pub use self :: context:: Context ;
Original file line number Diff line number Diff line change 1
1
use rotor_stream:: Buf ;
2
2
use hyper:: status:: StatusCode ;
3
3
use hyper:: header:: { Header , HeaderFormat } ;
4
+ use hyper:: method:: Method ;
4
5
5
6
use super :: { Head } ;
6
7
use message:: { MessageState , Message , HeaderError } ;
@@ -40,7 +41,7 @@ impl<'a> Response<'a> {
40
41
// TODO(tailhook) implement Connection: Close,
41
42
// (including explicit one in HTTP/1.0) and maybe others
42
43
MessageState :: ResponseStart {
43
- body : if head. method == Head { Ignored } else { Normal } ,
44
+ body : if head. method == Method :: Head { Ignored } else { Normal } ,
44
45
version : head. version ,
45
46
} . with ( out_buf)
46
47
}
You can’t perform that action at this time.
0 commit comments