Remove get and rename get_ref to get
Since `get_ref` (now `get`) takes `&self` there is no need for a special cloning method.
This commit is contained in:
@@ -46,7 +46,7 @@ impl Request {
|
||||
|
||||
|
||||
let body = if headers.has::<ContentLength>() {
|
||||
match headers.get_ref::<ContentLength>() {
|
||||
match headers.get::<ContentLength>() {
|
||||
Some(&ContentLength(len)) => SizedReader(stream, len),
|
||||
None => unreachable!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user