Browse Source

Add test case for #156

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

+ 6
- 1
test-server/server.js View File

@@ -233,7 +233,12 @@ app.all('/long/', (req, res) => {  var count = 0;
233 233
 
234 234
 })
235 235
 
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) => {
237 242
   res.status(400)
238 243
   res.write({ data : Date.now() })
239 244
   res.end()