Skip to content

Commit

Permalink
fix: adjust servicePath (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Aug 21, 2023
1 parent a8edbef commit f825fd8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/context/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,12 @@ class ZitiContext extends EventEmitter {
/**
* ------------ Now Routing over Ziti -----------------
*/
let parsedURL = new URL(url);
if (isEqual(parsedURL.pathname, '/')) {
parsedURL.pathname = opts.servicePath;
url = parsedURL.toString();
}

self.logger.debug('httpFetch starting for [%s]', url);

// build HTTP request object
Expand Down

0 comments on commit f825fd8

Please sign in to comment.