diff options
author | 2015-10-19 18:10:45 -0700 | |
---|---|---|
committer | 2015-10-19 18:40:28 -0700 | |
commit | fe3d9ea14ff437961871d11a0fc3da8acaf88105 (patch) | |
tree | 3e9386bced0dade6c819f3d2186e849b97b81db4 /src/ruby/pb/test/client.rb | |
parent | e2a1bf46f975a47497977a19a556dd9f07ae944a (diff) |
fix ruby per_rpc_creds
Diffstat (limited to 'src/ruby/pb/test/client.rb')
-rwxr-xr-x | src/ruby/pb/test/client.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ruby/pb/test/client.rb b/src/ruby/pb/test/client.rb index e6d5223272..1388685734 100755 --- a/src/ruby/pb/test/client.rb +++ b/src/ruby/pb/test/client.rb @@ -255,6 +255,12 @@ class NamedTests def per_rpc_creds auth_creds = Google::Auth.get_application_default(@args.oauth_scope) kw = auth_creds.updater_proc.call({}) + + # TODO(jtattermusch): downcase the metadata keys here to make sure + # they are not rejected by C core. This is a hotfix that should + # be addressed by introducing auto-downcasing logic. + kw = Hash[ kw.each_pair.map { |k, v| [k.downcase, v] }] + resp = perform_large_unary(fill_username: true, fill_oauth_scope: true, **kw) |