From 5dfadba96f08b888a5b37699416fbdd341c239ff Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Thu, 28 Nov 2013 12:39:45 -0800 Subject: [PATCH] remove null return from .is() --- lib/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request.js b/lib/request.js index b99c373..141c1ca 100644 --- a/lib/request.js +++ b/lib/request.js @@ -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