Skip to content
Myr

Merge pull request #1643 from jonjenkins/master

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

Fixed issue with callback querystring failure

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents e0afda4, 2f19b4f · Browse files · 1 file+1 added−0 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−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/response.js+1 added
232 unmodified lines
233 this.set('Content-Type', 'application/json');234235 // jsonp236 if (callback) {237 if (callback instanceof Array) callback = callback[0];238 this.set('Content-Type', 'text/javascript');239 var cb = callback.replace(/[^\[\]\w$.]/g, '');240 body = cb + ' && ' + cb + '(' + body + ');';241 }
517 unmodified lines