Browse Source

Change test server API for cookie tests #156

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

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

@@ -233,8 +233,8 @@ app.all('/long/', (req, res) => {  var count = 0;
233 233
 
234 234
 })
235 235
 
236
-app.all('/cookie', (req, res) => {
237
-  res.cookie('cookieName',Math.random(), { maxAge: 900000, httpOnly: true });
236
+app.all('/cookie/:data', (req, res) => {
237
+  res.cookie('cookieName', req.params.data);
238 238
   res.end()
239 239
 })
240 240