We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def99d4 commit e01db7fCopy full SHA for e01db7f
1 file changed
src/Google/RestApi.php
@@ -279,7 +279,7 @@ protected function logRetryRequest(
279
): void {
280
if ($this->logger !== null) {
281
$headersForLog = $request->getHeaders();
282
- if (array_key_exists('Authorization', $headersForLog)) {
+ if (array_key_exists('authorization', array_change_key_case($headersForLog, CASE_LOWER))) {
283
$headersForLog['Authorization'] = '*****';
284
}
285
0 commit comments