remove null return from .is()

master
TJ Holowaychuk 2013-11-28 12:39:45 -08:00
parent 48601ea7d8
commit 5dfadba96f
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ module.exports = {
is: function(types){
// no request body
if (!(this.length || 'transfer-encoding' in this.header)) return null;
if (!(this.length || 'transfer-encoding' in this.header)) return;
var ct = this.type;
// no content-type