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

Commit 1ebba13

Browse files
committed
Change test server API for cookie tests #156
1 parent 05eb608 commit 1ebba13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-server/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ app.all('/long/', (req, res) => { var count = 0;
233233

234234
})
235235

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);
238238
res.end()
239239
})
240240

0 commit comments

Comments
 (0)