Skip to content

Commit 3bfa1c1

Browse files
committed
rubo
1 parent a2a533b commit 3bfa1c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/zendesk_api/client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def api_token_impersonate(username)
121121
ensure
122122
Thread.current[:local_connection] = nil
123123
end
124+
124125
# Creates a connection if there is none, otherwise returns the existing connection.
125126
#
126127
# @return [Faraday::Connection] Faraday connection for the client
@@ -259,7 +260,7 @@ def set_authentication(builder, config, username = nil)
259260
elsif config.access_token
260261
builder.use ZendeskAPI::Middleware::Request::UrlBasedAccessToken, config.access_token
261262
else
262-
builder.request :authorization, :basic, username ? username + "/token" : config.username , config.password
263+
builder.request :authorization, :basic, username ? "#{username}/token" : config.username, config.password
263264
end
264265
end
265266
end

0 commit comments

Comments
 (0)