Skip to content

Commit 9e8d6e8

Browse files
committed
Prevent double slash on api calls
1 parent c00f8c6 commit 9e8d6e8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/bigbluebutton_api.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,9 @@ def get_url(method, params={})
691691
params_string = "checksum=#{checksum}&#{params_string}"
692692
return "#{@url}/#{method}", params_string
693693
else
694-
url = "#{@url}/#{method}?"
694+
url = @url
695+
url += "/" unless url.end_with?("/")
696+
url += method
695697
url += "#{params_string}&" unless params_string.empty?
696698
url += "checksum=#{checksum}"
697699
return url, nil

0 commit comments

Comments
 (0)