Skip to content

Commit

Permalink
Response: Don't forget chunked_threshold
Browse files Browse the repository at this point in the history
Make sure any set `chunked_threshold` carries over when boxing or replacing
data.
  • Loading branch information
rawler committed Aug 26, 2020
1 parent 5e4fe04 commit d47ee3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/response.rs
Expand Up @@ -264,7 +264,7 @@ impl<R> Response<R> where R: Read {
headers: self.headers,
status_code: self.status_code,
data_length: data_length,
chunked_threshold: None,
chunked_threshold: self.chunked_threshold,
}
}

Expand Down Expand Up @@ -392,7 +392,7 @@ impl<R> Response<R> 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,
}
}
}
Expand Down

0 comments on commit d47ee3f

Please sign in to comment.