Ignore "none" Content-Encoding.
This commit is contained in:
parent
8b11ef9aa3
commit
a26274a62b
@ -84,7 +84,7 @@ Result<size_t> HttpReader::read_next(HttpQuery *query, bool can_be_slow) {
|
|||||||
return Status::Error(501, "Unimplemented: unsupported transfer-encoding");
|
return Status::Error(501, "Unimplemented: unsupported transfer-encoding");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (content_encoding_.empty()) {
|
if (content_encoding_.empty() || content_encoding_ == "none") {
|
||||||
} else if (content_encoding_ == "gzip" || content_encoding_ == "deflate") {
|
} else if (content_encoding_ == "gzip" || content_encoding_ == "deflate") {
|
||||||
gzip_flow_ = GzipByteFlow(Gzip::Mode::Decode);
|
gzip_flow_ = GzipByteFlow(Gzip::Mode::Decode);
|
||||||
GzipByteFlow::Options options;
|
GzipByteFlow::Options options;
|
||||||
|
Loading…
Reference in New Issue
Block a user