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

Commit 443b575

Browse files
committed
Add test case for #156
1 parent 6a435da commit 443b575

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-server/server.js

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

234234
})
235235

236-
app.all('/err-body', (res, res) => {
236+
app.all('/cookie', (req, res) => {
237+
res.cookie('cookieName',Math.random(), { maxAge: 900000, httpOnly: true });
238+
res.end()
239+
})
240+
241+
app.all('/err-body', (req, res) => {
237242
res.status(400)
238243
res.write({ data : Date.now() })
239244
res.end()

0 commit comments

Comments
 (0)