Browse Source

Fix test server API

Ben Hsieh 8 years ago
parent
commit
92adfe9ee8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      test-server/server.js

+ 1
- 1
test-server/server.js View File

154
   res.send(req.headers)
154
   res.send(req.headers)
155
 })
155
 })
156
 
156
 
157
-app.post('/upload', bodyParser.urlencoded({ extended : true }), (req, res) => {
157
+app.post('/upload_urlencode', bodyParser.urlencoded({ extended : true }), (req, res) => {
158
   console.log(JSON.stringify(req.headers))
158
   console.log(JSON.stringify(req.headers))
159
   console.log(JSON.stringify(req.body))
159
   console.log(JSON.stringify(req.body))
160
   res.status(200).send(req.body)
160
   res.status(200).send(req.body)