Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> --------- Co-authored-by: kobenguyent <[email protected]>
- Loading branch information