Skip to content

Commit 8fbcb41

Browse files
committed
add comment on accepted fix for Sails
1 parent 0b9710b commit 8fbcb41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connect_middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Middleware(runner) {
3030
var msg = util.format('Path [%s] defined in Swagger, but %s operation is not.', path.path, req.method);
3131
var err = new Error(msg);
3232
err.statusCode = 405;
33-
err.status = err.statusCode;
33+
err.status = err.statusCode; // for Sails, see: https://github.com/theganyo/swagger-node-runner/pull/31
3434

3535
var allowedMethods = _.map(path.operationObjects, function(operation) {
3636
return operation.method.toUpperCase();

0 commit comments

Comments
 (0)