diff --git a/actix-http/src/h1/big_bytes.rs b/actix-http/src/h1/big_bytes.rs index ef31a61de..2025916cf 100644 --- a/actix-http/src/h1/big_bytes.rs +++ b/actix-http/src/h1/big_bytes.rs @@ -72,7 +72,7 @@ impl BigBytes { // Returns a slice of the frontmost buffer pub(super) fn front_slice(&self) -> &[u8] { if let Some(front) = self.frozen.front() { - &front + front } else { &self.buffer }