Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyissillyyy committed May 1, 2021
1 parent ec44a60 commit 0ac0858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Request {
attach(...args) {
if (!this.body || !(this.body instanceof FormData)) {
this.body = new FormData();
for (const [key, val] of this.body.getHeaders()) this.set(key, val);
for (const [key, val] of Object.entries(this.body.getHeaders())) this.set(key, val);
this.set('content-length', this.body.getLengthSync());
}
if (typeof args[0] === 'object') {
Expand Down

0 comments on commit 0ac0858

Please sign in to comment.