Skip to content

Commit

Permalink
Merge pull request #239 from micmro/verify-size
Browse files Browse the repository at this point in the history
Be extra careful when checking the size #238
  • Loading branch information
micmro authored Oct 21, 2018
2 parents f4a3421 + f7a217a commit 6c93b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/transformers/extract-details-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function parseResponseDetails(entry: Entry): SafeKvTuple[] {

const contentLength = getHeader(headers, "Content-Length");
let contentSize;
if (content.size !== -1 && contentLength !== content.size.toString()) {
if (content.size && content.size !== -1 && contentLength !== content.size.toString()) {
contentSize = content.size;
}

Expand Down

0 comments on commit 6c93b05

Please sign in to comment.