We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a414a2 commit 572a3adCopy full SHA for 572a3ad
logtail.js
@@ -58,12 +58,13 @@ function get_log() {
58
throw "Server did not respond with a Content-Range";
59
60
log_file_size = parseInt(c_r.split("/")[1]);
61
- content_size = xhr.getResponseHeader("Content-Length");
+ content_size = parseInt(xhr.getResponseHeader("Content-Length"));
62
} else if (xhr.status === 200) {
63
if (must_get_206)
64
throw "Expected 206 Partial Content";
65
66
- content_size = log_file_size = xhr.getResponseHeader("Content-Length");
+ content_size = log_file_size =
67
+ parseInt(xhr.getResponseHeader("Content-Length"));
68
} else {
69
throw "Unexpected status " + xhr.status;
70
}
0 commit comments