2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix(formdata): add hotfix to use the asynchronous API to compute the content-length header value; (#5521)

This commit is contained in:
Dmitriy Mozgovoy
2023-02-02 00:55:05 +02:00
committed by GitHub
parent 08104c028c
commit 96d336f527
5 changed files with 26 additions and 7 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ class AxiosHeaders {
if (header) {
const key = utils.findKey(this, header);
return !!(key && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
}
return false;