Skip to content

Commit 469df8c

Browse files
authored
Merge pull request #794 from vkv0220/patch-1
Edit error in code snippet ## HTTP-headers
2 parents 6de8c3c + ae89ffb commit 469df8c

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)