Skip to content
Myr

semi

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 b1d4b71 · 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
305 unmodified lines
306 var contentType = this.headers['content-type'];307 if (!contentType) return;308 if (!~type.indexOf('/')) type = mime.lookup(type);309 if (~type.indexOf('*')) {310 type = type.split('/')310 type = type.split('/');311 contentType = contentType.split('/');312 if ('*' == type[0] && type[1] == contentType[1]) return true;313 if ('*' == type[1] && type[0] == contentType[0]) return true;314 }
18 unmodified lines