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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user