http compressions stage 3 attempt 2
This commit is contained in:
parent
be3740f6ed
commit
ac173e1ca4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user