From 6b586e767ec9922482e7b74c0e04f487a9bb9e58 Mon Sep 17 00:00:00 2001 From: Will Frew Date: Mon, 9 Mar 2015 18:33:16 +0000 Subject: [PATCH] Fixes multifetch calling itself bug --- source/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/index.js b/source/index.js index ccf8b5c..81af56b 100644 --- a/source/index.js +++ b/source/index.js @@ -31,7 +31,7 @@ var getResources = function(request, ignore) { var path = url.parse(request.url).pathname; return Object.keys(query).reduce(function(acc, key) { - if(key !== path && ignore.indexOf(key) === -1) { + if(query[key] !== path && ignore.indexOf(key) === -1) { acc[key] = query[key]; }