Skip to content

Commit 264b861

Browse files
committed
Merge pull request #7 from brson/upstream
Fix a compilation error
2 parents 42fc6cc + ce68753 commit 264b861

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/server/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ mod parser;
1010
mod body;
1111
mod response;
1212

13-
use hyper::method::Method::Head;
14-
1513
pub use self::request::Head;
1614
pub use self::response::Response;
1715
pub use self::context::Context;

src/server/response.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use rotor_stream::Buf;
22
use hyper::status::StatusCode;
33
use hyper::header::{Header, HeaderFormat};
4+
use hyper::method::Method;
45

56
use super::{Head};
67
use message::{MessageState, Message, HeaderError};
@@ -40,7 +41,7 @@ impl<'a> Response<'a> {
4041
// TODO(tailhook) implement Connection: Close,
4142
// (including explicit one in HTTP/1.0) and maybe others
4243
MessageState::ResponseStart {
43-
body: if head.method == Head { Ignored } else { Normal },
44+
body: if head.method == Method::Head { Ignored } else { Normal },
4445
version: head.version,
4546
}.with(out_buf)
4647
}

0 commit comments

Comments
 (0)