Skip to content

Commit

Permalink
When Transfer-Length is not present in FDT, use value of Content-Leng…
Browse files Browse the repository at this point in the history
…th (#4)
  • Loading branch information
kuehnhammer authored May 23, 2022
1 parent d15b169 commit b961467
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FileDeliveryTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ LibFlute::FileDeliveryTable::FileDeliveryTable(uint32_t instance_id, char* buffe
val = file->Attribute("Transfer-Length");
if (val != nullptr) {
transfer_length = strtoull(val, nullptr, 0);
} else {
transfer_length = content_length;
}

auto content_md5 = file->Attribute("Content-MD5");
Expand Down

0 comments on commit b961467

Please sign in to comment.