瀏覽代碼

Change test server API for cookie tests #156

Ben Hsieh 7 年之前
父節點
當前提交
1ebba13526
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      test-server/server.js

+ 2
- 2
test-server/server.js 查看文件

@@ -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