Skip to content

Commit 2d3390a

Browse files
authored
Merge pull request #24 from shubhamR1997/request_fix
page request constructor name changed
2 parents ab0eaab + 4f64c88 commit 2d3390a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/proxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const useProxy = async (target, proxy) => {
4141
}
4242
};
4343
// Proxy per request
44-
if (target.constructor.name === "Request") {
44+
if (target.constructor.name.indexOf("Request")!=-1) {
4545
if (type(proxy) == "object") {
4646
target = setOverrides(target, proxy);
4747
proxy = proxy.proxy;
@@ -61,4 +61,4 @@ const useProxy = async (target, proxy) => {
6161
}
6262
}
6363
};
64-
module.exports = useProxy;
64+
module.exports = useProxy;

0 commit comments

Comments
 (0)