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

Commit

Permalink
Add test case for #156
Browse files Browse the repository at this point in the history
  • Loading branch information
wkh237 committed Oct 14, 2016
1 parent 6a435da commit 443b575
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test-server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,12 @@ app.all('/long/', (req, res) => { var count = 0;

})

app.all('/err-body', (res, res) => {
app.all('/cookie', (req, res) => {
res.cookie('cookieName',Math.random(), { maxAge: 900000, httpOnly: true });
res.end()
})

app.all('/err-body', (req, res) => {
res.status(400)
res.write({ data : Date.now() })
res.end()
Expand Down

0 comments on commit 443b575

Please sign in to comment.