Skip to content

Commit 09c1e9d

Browse files
committed
fix: only add custom properties that aren't in the request object
Closes #1666
1 parent bda737c commit 09c1e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-fetch/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CustomRequest extends Request {
1414

1515
// add custom parameters
1616
for (const key in init) {
17-
if (!this[key]) {
17+
if (!(key in this)) {
1818
this[key] = init[key];
1919
}
2020
}

0 commit comments

Comments
 (0)