Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
client: add note about trailing CRLF
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed Jan 28, 2019
1 parent 9ce18d0 commit b990182
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 257,8 @@ impl<'a, W: Write> MultipartWriter<'a, W> {
}

// always write the closing boundary, even for empty bodies
// trailing CRLF is optional but Actix requires it due to a naive implementation:
// https://github.com/actix/actix-web/issues/598
write!(self.inner, "--{}--\r\n", self.boundary)?;
Ok(self.inner)
}
Expand Down

0 comments on commit b990182

Please sign in to comment.