We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab0eaab + 4f64c88 commit 2d3390aCopy full SHA for 2d3390a
src/core/proxy.js
@@ -41,7 +41,7 @@ const useProxy = async (target, proxy) => {
41
}
42
};
43
// Proxy per request
44
- if (target.constructor.name === "Request") {
+ if (target.constructor.name.indexOf("Request")!=-1) {
45
if (type(proxy) == "object") {
46
target = setOverrides(target, proxy);
47
proxy = proxy.proxy;
@@ -61,4 +61,4 @@ const useProxy = async (target, proxy) => {
61
62
63
64
-module.exports = useProxy;
+module.exports = useProxy;
0 commit comments