Skip to content

Commit

Permalink
Remove key and token check
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinugu committed Oct 14, 2023
1 parent 50d8d4a commit b9119fc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,7 @@ DynamicProxy.prototype.targetForRequest = function (request) {
);

// extract key, token, and target_url from path if path-based
if (
!(token && key) &&
this.proxyPathPrefix &&
request.url.startsWith(this.proxyPathPrefix)
) {
if (this.proxyPathPrefix && request.url.startsWith(this.proxyPathPrefix)) {
console.log(
`Using proxyPathPrefix: ${this.proxyPathPrefix} for url: ${request.url}`,
);
Expand Down

0 comments on commit b9119fc

Please sign in to comment.