We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9710b commit 8fbcb41Copy full SHA for 8fbcb41
lib/connect_middleware.js
@@ -30,7 +30,7 @@ function Middleware(runner) {
30
var msg = util.format('Path [%s] defined in Swagger, but %s operation is not.', path.path, req.method);
31
var err = new Error(msg);
32
err.statusCode = 405;
33
- err.status = err.statusCode;
+ err.status = err.statusCode; // for Sails, see: https://github.com/theganyo/swagger-node-runner/pull/31
34
35
var allowedMethods = _.map(path.operationObjects, function(operation) {
36
return operation.method.toUpperCase();
0 commit comments