Skip to content

Commit

Permalink
fixed another missing set()
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 7, 2011
1 parent 38c759b commit c4bfd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express/response.js
Expand Up @@ -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 + ');';
}
Expand Down

0 comments on commit c4bfd0e

Please sign in to comment.