diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_net.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index 39384c7..8b6d33b 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -57,7 +57,7 @@ class GitlabNet end def authorized_key(key) - resp = get("#{host}/authorized_keys?key=#{key}") + resp = get("#{host}/authorized_keys?key=#{URI.escape(key, '+/=')}") JSON.parse(resp.body) if resp.code == "200" rescue nil |