diff --git a/src/response.rs b/src/response.rs index b57061a1c..bcb061b2d 100644 --- a/src/response.rs +++ b/src/response.rs @@ -264,7 +264,7 @@ impl Response where R: Read { headers: self.headers, status_code: self.status_code, data_length: data_length, - chunked_threshold: None, + chunked_threshold: self.chunked_threshold, } } @@ -392,7 +392,7 @@ impl Response where R: Read + Send + 'static { status_code: self.status_code, headers: self.headers, data_length: self.data_length, - chunked_threshold: None, + chunked_threshold: self.chunked_threshold, } } }