Merge pull request #1566 from TomSssM/tomsssm-patch-2

bug fix on the server
This commit is contained in:
Ilya Kantor 2019-11-02 21:40:04 +03:00 committed by GitHub
commit d4fd448f4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ let uploads = Object.create(null);
function onUpload(req, res) {
let fileId = req.headers['x-file-id'];
let startByte = req.headers['x-start-byte'];
let startByte = +req.headers['x-start-byte'];
if (!fileId) {
res.writeHead(400, "No file id");