Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericswanson-dfinity committed Dec 11, 2024
1 parent 7ed081d commit 0a058d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ impl Asset {
fn estimate_size(&self) -> usize {
let mut size = 0;
size += 1 + self.content_type.len();
size += self.encodings.iter().fold(2, |acc, (name, encoding)| {
acc + 2 + name.len() + encoding.estimate_size()
size += self.encodings.iter().fold(1, |acc, (name, encoding)| {
acc + 1 + name.len() + encoding.estimate_size()
});
size += 1 + self
.max_age
Expand Down

0 comments on commit 0a058d4

Please sign in to comment.