From ae89ffb97dcc50be16aaa59529d6e79cf14ad3b7 Mon Sep 17 00:00:00 2001 From: vkv0220 <36685410+vkv0220@users.noreply.github.com> Date: Mon, 11 Feb 2019 17:56:45 +0700 Subject: [PATCH] Edit error in code snippet ## HTTP-headers Method .reduce returns undeclared variable. Code edited. --- 7-network/1-xmlhttprequest/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/7-network/1-xmlhttprequest/article.md b/7-network/1-xmlhttprequest/article.md index 52b11356..14db5e42 100644 --- a/7-network/1-xmlhttprequest/article.md +++ b/7-network/1-xmlhttprequest/article.md @@ -330,7 +330,7 @@ There are 3 methods for HTTP-headers: .reduce((result, current) => { let [name, value] = current.split(': '); result[name] = value; - return acc; + return result; }, {}); ```