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

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

@@ -233,6 +233,12 @@ app.all('/long/', (req, res) => {  var count = 0;
233 233
 
234 234
 })
235 235
 
236
+app.all('/err-body', (res, res) => {
237
+  res.status(400)
238
+  res.write({ data : Date.now() })
239
+  res.end()
240
+})
241
+
236 242
 app.all('/timeout', (req, res) => {
237 243
 })
238 244