http compressions stage 3 attempt 2
This commit is contained in:
1 parent
be3740f6ed
commit
ac173e1ca4
1 file changed
+1
-2
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user