Skip to content
Myr

return bool from req.is()

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1c65643 · 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/request.js+1 added-1 removed
267 unmodified lines
268 contentType = contentType.split('/');269 if ('*' == type[0] && type[1] == contentType[1]) return true;270 if ('*' == type[1] && type[0] == contentType[0]) return true;271 }272 return ~contentType.indexOf(type);272 return !! ~contentType.indexOf(type);273};274275// Callback for isXMLHttpRequest / xhr276
13 unmodified lines