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 31, 2020
1 parent fa5b19b commit 6a10b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/response.rs
Expand Up @@ -295,7 +295,7 @@ where
headers: self.headers,
status_code: self.status_code,
data_length,
chunked_threshold: None,
chunked_threshold: self.chunked_threshold,
}
}

Expand Down Expand Up @@ -453,7 +453,7 @@ where
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 6a10b10

Please sign in to comment.