Skip to content

Commit

Permalink
added parseInt radix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Lebedev committed Apr 19, 2013
1 parent 59560d1 commit 90a4e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/FileAPI.XHR.js
Expand Up @@ -194,7 +194,7 @@
options.pause(data.file, options);

// smart restart if server reports about the last known byte
var lkb = parseInt(xhr.getResponseHeader('X-Last-Known-Byte'));
var lkb = parseInt(xhr.getResponseHeader('X-Last-Known-Byte'), 10);
api.log("X-Last-Known-Byte: " + lkb);
if (lkb) {
data.end = lkb;
Expand All @@ -220,7 +220,7 @@
// next chunk

// shift position if server reports about the last known byte
var lkb = parseInt(xhr.getResponseHeader('X-Last-Known-Byte'));
var lkb = parseInt(xhr.getResponseHeader('X-Last-Known-Byte'), 10);
api.log("X-Last-Known-Byte: " + lkb);
if (lkb) {
data.end = lkb;
Expand Down

0 comments on commit 90a4e10

Please sign in to comment.