style changes

This commit is contained in:
Sean McArthur
2014-11-10 20:53:37 -08:00
parent db24256914
commit b9bfdd0537

View File

@@ -320,7 +320,7 @@ fn read_until_space<R: Reader>(stream: &mut R, buf: &mut [u8]) -> HttpResult<boo
pub fn read_method<R: Reader>(stream: &mut R) -> HttpResult<method::Method> {
let mut buf = [SP, ..16];
if !try!(read_until_space(stream, &mut buf)){
if !try!(read_until_space(stream, &mut buf)) {
return Err(HttpMethodError);
}
@@ -520,6 +520,7 @@ pub type RequestLine = (method::Method, uri::RequestUri, HttpVersion);
/// Read the `RequestLine`, such as `GET / HTTP/1.1`.
pub fn read_request_line<R: Reader>(stream: &mut R) -> HttpResult<RequestLine> {
debug!("read request line");
let method = try!(read_method(stream));
debug!("method = {}", method);
let uri = try!(read_uri(stream));