Skip to content
Myr

Fixes from pull request #1643, array method correction

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

authored by Jon Jenkins · committed by Jon Jenkins · parent bdbdab7 · 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/response.js+1 added-1 removed
232 unmodified lines
233 this.set('Content-Type', 'application/json');234235 // jsonp236 if (callback) {237 if (callback.isArray()) callback = callback[0];237 if (Array.isArray(callback)) 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