Merge pull request #1566 from TomSssM/tomsssm-patch-2
bug fix on the server
This commit is contained in:
commit
d4fd448f4c
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ let uploads = Object.create(null);
|
||||||
function onUpload(req, res) {
|
function onUpload(req, res) {
|
||||||
|
|
||||||
let fileId = req.headers['x-file-id'];
|
let fileId = req.headers['x-file-id'];
|
||||||
let startByte = req.headers['x-start-byte'];
|
let startByte = +req.headers['x-start-byte'];
|
||||||
|
|
||||||
if (!fileId) {
|
if (!fileId) {
|
||||||
res.writeHead(400, "No file id");
|
res.writeHead(400, "No file id");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue