diff --git a/lib/swagger.js b/lib/swagger.js index c886ac3..2bea1a1 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -102,7 +102,7 @@ function addRoute(app, uri, doc) { var host = headers.Host || headers.host; doc.basePath = req.protocol + '://' + host + initialPath; } - res.send(200, doc); + res.status(200).send(doc); }); }