You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolving path inconsistency in container.js and appium.js (#4866)
* Update Appium.js
Fixed#4865
Enhancement: Prevent Double Slashes in Appium Endpoint URL
Overview:
This update improves the _buildAppiumEndpoint() function by ensuring the path does not end with a trailing slash. This prevents potential issues with double slashes when constructing the Appium REST API endpoint URL.
Changes:
Introduced normalizedPath, which removes a trailing slash from path using .replace(/\/$/, '').
Updated the return statement to use normalizedPath instead of path.
Benefits:
✅ Prevents malformed URLs with double slashes.
✅ Improves consistency and reliability of API requests.
✅ Enhances code readability and maintainability.
* Update container.js
Fixed#4863
* Update lib/container.js
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>
---------
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>
0 commit comments