Skip to content

Commit

Permalink
page request constructor name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsr committed Jun 16, 2020
1 parent ab0eaab commit 4f64c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const useProxy = async (target, proxy) => {
}
};
// Proxy per request
if (target.constructor.name === "Request") {
if (target.constructor.name.indexOf("Request")!=-1) {
if (type(proxy) == "object") {
target = setOverrides(target, proxy);
proxy = proxy.proxy;
Expand All @@ -61,4 +61,4 @@ const useProxy = async (target, proxy) => {
}
}
};
module.exports = useProxy;
module.exports = useProxy;

0 comments on commit 4f64c88

Please sign in to comment.