Skip to content

Commit

Permalink
fix: Removes the unused parameter "header" when filtering headers wit…
Browse files Browse the repository at this point in the history
…hout values
  • Loading branch information
winie committed Jul 31, 2022
1 parent 2f18fbf commit 6be7fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function upload(option: UploadRequestOption) {
}

Object.entries(headers)
.filter(([header, value]) => value !== null)
.filter(([, value]) => value !== null)
.forEach(([header, value]) => xhr.setRequestHeader(header, value));

xhr.send(formData);
Expand Down

0 comments on commit 6be7fba

Please sign in to comment.