Reset pos after resetting buf. Fix #5

This commit is contained in:
Mohd Tarmizi 2016-02-08 00:58:08 +08:00
parent abf5ee5112
commit 561a5b0af6
1 changed files with 1 additions and 0 deletions

View File

@ -316,6 +316,7 @@ impl<'a> BufRead for Stdin<'a> {
self.req.is_eof = true; self.req.is_eof = true;
} }
self.req.buf = content; self.req.buf = content;
self.req.pos = 0;
break; break;
}, },
_ => (), _ => (),