Skip to content

Commit 5f7fbef

Browse files
committed
fix: node.js sample for IE10
1 parent d6c305d commit 5f7fbef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/Node.js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ app.use(express.bodyParser());
1212
app.post('/upload', function(req, res){
1313
resumable.post(req, function(status, filename, original_filename, identifier){
1414
console.log('POST', status, original_filename, identifier);
15-
res.send(status, {
15+
res.send(200, {
1616
// NOTE: Uncomment this funciton to enable cross-domain request.
1717
//'Access-Control-Allow-Origin': '*'
1818
});
@@ -34,7 +34,7 @@ app.post('/upload', function(req, res){
3434
app.get('/upload', function(req, res){
3535
resumable.get(req, function(status, filename, original_filename, identifier){
3636
console.log('GET', status);
37-
res.send(status, (status == 'found' ? 200 : 404));
37+
res.send(200, (status == 'found' ? 200 : 404));
3838
});
3939
});
4040

0 commit comments

Comments
 (0)