Edit error in code snippet ## HTTP-headers

Method .reduce returns undeclared variable. Code edited.
This commit is contained in:
vkv0220 2019-02-11 17:56:45 +07:00 committed by GitHub
parent 09bc924b68
commit ae89ffb97d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,7 @@ There are 3 methods for HTTP-headers:
.reduce((result, current) => { .reduce((result, current) => {
let [name, value] = current.split(': '); let [name, value] = current.split(': ');
result[name] = value; result[name] = value;
return acc; return result;
}, {}); }, {});
``` ```