Skip to content

Commit

Permalink
fix: Removes the unused parameter Header when filtering Headers witho…
Browse files Browse the repository at this point in the history
…ut values
  • Loading branch information
winie committed Jul 31, 2022
1 parent 2f18fbf commit fe2cf2a
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 fe2cf2a

Please sign in to comment.