Skip to content
Myr

Added config option app.enable('jsonp callback') support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dav Glass · committed by Tj Holowaychuk · parent a383b30 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/express/response.js+1 added-1 removed
82 unmodified lines
83 if (!this.headers['Content-Type']) {84 this.contentType('.json');85 }86 body = JSON.stringify(body);87 if (this.req.query.callback) {87 if (this.req.query.callback && this.app.settings['jsonp callback']) {88 body = this.req.query.callback + '(' + body + ');';89 }90 }91 break;
272 unmodified lines