Skip to content

Commit

Permalink
Merge pull request #60 from farhatahmad/double-slash
Browse files Browse the repository at this point in the history
Prevent double slash on api calls
  • Loading branch information
wpramio authored Mar 31, 2023
2 parents c00f8c6 + 56dc137 commit 8f5ff61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bigbluebutton_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,10 @@ def get_url(method, params={})
params_string = "checksum=#{checksum}&#{params_string}"
return "#{@url}/#{method}", params_string
else
url = "#{@url}/#{method}?"
url += "#{params_string}&" unless params_string.empty?
url = @url
url += "/" unless url.end_with?("/")
url += method.to_s
url += "?#{params_string}&" unless params_string.empty?
url += "checksum=#{checksum}"
return url, nil
end
Expand Down

0 comments on commit 8f5ff61

Please sign in to comment.