Permalink
Browse files

fixed another missing set()

  • Loading branch information...
1 parent 38c759b commit c4bfd0e990cf561673a6749b7caf300440f1355e @tj tj committed Feb 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/express/response.js
View
@@ -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 + ');';
}

0 comments on commit c4bfd0e

Please sign in to comment.