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 a078f50 commit 570adf3Copy full SHA for 570adf3
controller.js
@@ -365,7 +365,11 @@ var Controller = Class.extend(
365
this.responseSent = true;
366
var toCall = type || this.resFunc;
367
if ( code ) {
368
- this.res.status( code )[ toCall ]( content );
+ if ( typeof this.res.status === 'function' ) {
369
+ this.res.status( code )[ toCall ]( content );
370
+ } else {
371
+ this.res[ toCall ]( code, content );
372
+ }
373
} else {
374
this.res[ toCall ]( content );
375
}
0 commit comments