Skip to content

Commit d9278ac

Browse files
committed
Bug Fix: Remove trailing slash from proxyOpts for custom server URL
1 parent 67ce8bb commit d9278ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/winappdriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class WinAppDriver {
234234
/** @type {import('@appium/types').ProxyOptions} */
235235
const proxyOpts = {
236236
log: this.log,
237-
base: parsedUrl.pathname,
237+
base: _.trimEnd(parsedUrl.pathname, '/'),
238238
server: parsedUrl.hostname,
239239
port: parseInt(parsedUrl.port, 10),
240240
scheme: _.trimEnd(parsedUrl.protocol, ':'),

0 commit comments

Comments
 (0)