php: fix per_rpc_creds capital auth header key

pull/7896/head
Stanley Cheung 8 years ago
parent b2a9940465
commit b15811e36d
  1. 7
      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;
}
/**

Loading…
Cancel
Save