Skip to content

Commit

Permalink
Merge pull request #24 from shubhamR1997/request_fix
Browse files Browse the repository at this point in the history
page request constructor name changed
  • Loading branch information
Cuadrix authored Jun 16, 2020
2 parents ab0eaab + 4f64c88 commit 2d3390a
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 2d3390a

Please sign in to comment.