http compressions stage 3 attempt 2

This commit is contained in:
YK 2024-05-11 09:07:08 +03:00
parent be3740f6ed
commit ac173e1ca4

View File

@ -232,13 +232,12 @@ impl Response {
write_response_header(headers);
v.extend_from_slice(&b);
} else {
write_response_header(headers);
v.extend_from_slice(text.as_bytes());
}
},
_ => ()
_ => write_response_header(headers)
}
v