From 6be7fba917625c749180d7c767e2ae042e65cc52 Mon Sep 17 00:00:00 2001 From: winie Date: Sun, 31 Jul 2022 22:25:07 +0200 Subject: [PATCH] fix: Removes the unused parameter "header" when filtering headers without values --- src/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request.ts b/src/request.ts index 1000f61e..e80e10cb 100644 --- a/src/request.ts +++ b/src/request.ts @@ -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);