Edit error in code snippet ## HTTP-headers
Method .reduce returns undeclared variable. Code edited.
This commit is contained in:
parent
09bc924b68
commit
ae89ffb97d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}, {});
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue