Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 55c5347

Browse files
committed
Remove redundant code in test server
1 parent fa33d69 commit 55c5347

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test-server/server.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,7 @@ app.use('/public', express.static('./public'))
4141
app.get('/redirect', function(req, res) {
4242
res.redirect('/public/github.png')
4343
})
44-
// handle octet-stream request
45-
app.post('/upload', function(req, res){
4644

47-
console.log(req.headers)
48-
console.log(req.body)
49-
fs.writeFile('./uploads/file'+Date.now()+'.png', req.body,function(err){
50-
if(!err)
51-
res.status(200).send({ message : 'ok'})
52-
else
53-
res.status(500).send({ message : err})
54-
})
55-
56-
})
5745
// return an empty response
5846
app.all('/empty', function(req, res) {
5947
res.send('')

0 commit comments

Comments
 (0)