Explorar el Código

Add test case for #156

Ben Hsieh hace 9 años
padre
commit
443b575c20
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6
    1
      test-server/server.js

+ 6
- 1
test-server/server.js Ver fichero

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
   res.status(400)
242
   res.status(400)
238
   res.write({ data : Date.now() })
243
   res.write({ data : Date.now() })
239
   res.end()
244
   res.end()