Skip to content

Commit ae89ffb

Browse files
authored
Edit error in code snippet ## HTTP-headers
Method .reduce returns undeclared variable. Code edited.
1 parent 09bc924 commit ae89ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

7-network/1-xmlhttprequest/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ There are 3 methods for HTTP-headers:
330330
.reduce((result, current) => {
331331
let [name, value] = current.split(': ');
332332
result[name] = value;
333-
return acc;
333+
return result;
334334
}, {});
335335
```
336336

0 commit comments

Comments
 (0)