diff options
author | Stanley Cheung <stanleycheung@google.com> | 2016-08-26 15:23:28 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2016-08-26 15:24:01 -0700 |
commit | 6f7e55fe26fb31c4ce32004ead58cbc89415f68a (patch) | |
tree | f92a3704c1ee46a1ea463f703e1b01497c8171e9 | |
parent | 4275e60eb686ceb202c042fe578c9cf992e590d0 (diff) |
php: fix per_rpc_creds capital auth header key
-rwxr-xr-x | src/php/tests/interop/interop_client.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/php/tests/interop/interop_client.php b/src/php/tests/interop/interop_client.php index bf40549a04..7f8354e236 100755 --- a/src/php/tests/interop/interop_client.php +++ b/src/php/tests/interop/interop_client.php @@ -197,7 +197,12 @@ function updateAuthMetadataCallback($context) $methodName = $context->method_name; $auth_credentials = ApplicationDefaultCredentials::getCredentials(); - return $auth_credentials->updateMetadata($metadata = [], $authUri); + $metadata = []; + $result = $auth_credentials->updateMetadata([], $authUri); + foreach ($result as $key => $value) { + $metadata[strtolower($key)] = $value; + } + return $metadata; } /** |