Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed another missing set()

  • Loading branch information...
commit c4bfd0e990cf561673a6749b7caf300440f1355e 1 parent 38c759b
@tj tj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/express/response.js
View
2  lib/express/response.js
@@ -83,7 +83,7 @@ http.ServerResponse.prototype.send = function(body, headers, status){
this.contentType('.json');
}
body = JSON.stringify(body);
- if (this.req.query.callback && this.app.settings['jsonp callback']) {
+ if (this.req.query.callback && this.app.set('jsonp callback')) {
this.header('Content-Type', 'text/javascript');
body = this.req.query.callback.replace(/[^\w$.]/g, '') + '(' + body + ');';
}
Please sign in to comment.
Something went wrong with that request. Please try again.