1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 04:35:38 +02:00

files: 304 Not Modified responses omit Content-Length header (#2453)

This commit is contained in:
Rob Ede
2021-11-19 14:04:12 +00:00
committed by GitHub
parent 56ee97f722
commit 194a691537
11 changed files with 145 additions and 35 deletions

View File

@@ -32,6 +32,8 @@ pub enum AnyBody<B = BoxBody> {
}
impl AnyBody {
// TODO: a None body constructor
/// Constructs a new, empty body.
pub fn empty() -> Self {
Self::Bytes(Bytes::new())