mirror of https://github.com/mohtar/rust-fastcgi
Update for Rust 1.5
This commit is contained in:
parent
3fbd635807
commit
5f295b61ea
|
@ -470,7 +470,7 @@ impl Request {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if content.is_empty() {
|
if content.is_empty() {
|
||||||
params.extend(try!(read_pairs(&mut Cursor::new(buf.as_ref()))));
|
params.extend(try!(read_pairs(&mut Cursor::new(&buf))));
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
buf.extend(content);
|
buf.extend(content);
|
||||||
|
|
Loading…
Reference in New Issue