Skip to content

Commit

Permalink
fix(server): Flush 100-continue messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Dec 19, 2015
1 parent 40d4014 commit 92ff50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl<H: Handler + 'static> Worker<H> {
fn handle_expect<W: Write>(&self, req: &Request, wrt: &mut W) -> bool {
if req.version == Http11 && req.headers.get() == Some(&Expect::Continue) {
let status = self.handler.check_continue((&req.method, &req.uri, &req.headers));
match write!(wrt, "{} {}\r\n\r\n", Http11, status) {
match write!(wrt, "{} {}\r\n\r\n", Http11, status).and_then(|_| wrt.flush()) {
Ok(..) => (),
Err(e) => {
error!("error writing 100-continue: {:?}", e);
Expand Down

0 comments on commit 92ff50f

Please sign in to comment.