Skip to content

Commit 511f76e

Browse files
Fix server_version path debug output
1 parent 798d4d8 commit 511f76e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/appium_lib/common/patch.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def raw_execute(command, opts = {}, command_hash = nil)
100100
# change path from session/efac972c-941a-499c-803c-d7d008749/execute
101101
# to /execute
102102
# path may be nil, session, or not have anything after the session_id.
103-
path_str = ''
103+
path_str = path
104+
path_str = '/' + path_str unless path_str.nil? ||
105+
path_str.length <= 0 || path_str[0] == '/'
104106
path_match = path.match /.*\h{8}-\h{4}-\h{4}-\h{4}-\h{12}/
105107
path_str = path.sub(path_match[0], '') unless path_match.nil?
106108

0 commit comments

Comments
 (0)