Skip to content

Commit

Permalink
Merge pull request #705 from sfackler/master
Browse files Browse the repository at this point in the history
fix(server): Flush 100-continue messages
  • Loading branch information
seanmonstar committed Dec 19, 2015
2 parents 40d4014 + 92ff50f commit 6cb35bc
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 6cb35bc

Please sign in to comment.