You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// influxdbv3_server/src/http.rs// Unzip the gzip-encoded contentuse std::io::Read;let decoder = flate2::read::GzDecoder::new(&body[..]);// Read at most max_request_bytes bytes to prevent a decompression bomb// based DoS.//// In order to detect if the entire stream ahs been read, or truncated,// read an extra byte beyond the limit and check the resulting data// length - see the max_request_size_truncation test.letmut decoder = decoder.take(self.max_request_bytesasu64 + 1);letmut decoded_data = Vec::new();
decoder
.read_to_end(&mut decoded_data).map_err(Error::InvalidGzip)?;
What type of enhancement is this?
API improvement
What does the enhancement do?
Here is a related request:
Now we return:
Implementation challenges
I suppose we should handle
Content-Encoding
header and use gzip if necessary.cc @shuiyisong
The text was updated successfully, but these errors were encountered: