mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Re-support gzip
This commit is contained in:
parent
909b99f1a6
commit
f4e3e8e38e
2 changed files with 39 additions and 28 deletions
|
@ -540,7 +540,7 @@ impl StreamedResponse {
|
|||
StreamedResponse { metadata: m, decoder: d }
|
||||
}
|
||||
|
||||
fn from_http_response(response: Box<HttpResponse>, m: Metadata) -> Result<StreamedResponse, LoadError> {
|
||||
pub fn from_http_response(response: Box<HttpResponse>, m: Metadata) -> Result<StreamedResponse, LoadError> {
|
||||
let decoder = match response.content_encoding() {
|
||||
Some(Encoding::Gzip) => {
|
||||
let result = GzDecoder::new(response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue