Skip to content

Commit ffef5e3

Browse files
authored
Fix this arg for URLSearchParams prototype call (#1111)
1 parent 694b11a commit ffef5e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/headers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default class Headers extends URLSearchParams {
114114
validateHeaderName(name);
115115
validateHeaderValue(name, String(value));
116116
return URLSearchParams.prototype[p].call(
117-
receiver,
117+
target,
118118
String(name).toLowerCase(),
119119
String(value)
120120
);
@@ -126,7 +126,7 @@ export default class Headers extends URLSearchParams {
126126
return name => {
127127
validateHeaderName(name);
128128
return URLSearchParams.prototype[p].call(
129-
receiver,
129+
target,
130130
String(name).toLowerCase()
131131
);
132132
};

0 commit comments

Comments
 (0)