Skip to content

Commit e01db7f

Browse files
committed
Preserve lower case key comparison
1 parent def99d4 commit e01db7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Google/RestApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ protected function logRetryRequest(
279279
): void {
280280
if ($this->logger !== null) {
281281
$headersForLog = $request->getHeaders();
282-
if (array_key_exists('Authorization', $headersForLog)) {
282+
if (array_key_exists('authorization', array_change_key_case($headersForLog, CASE_LOWER))) {
283283
$headersForLog['Authorization'] = '*****';
284284
}
285285

0 commit comments

Comments
 (0)