Skip to content

Commit 9be8028

Browse files
fix: preserve default values in x-goog-request-params header (#150)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 474338479 Source-Link: googleapis/googleapis@d5d35e0 Source-Link: googleapis/googleapis-gen@efcd3f9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
1 parent 56521c8 commit 9be8028

File tree

2 files changed

+175
-176
lines changed

2 files changed

+175
-176
lines changed

packages/google-iam-credentials/src/v1/i_a_m_credentials_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export class IAMCredentialsClient {
423423
options.otherArgs.headers = options.otherArgs.headers || {};
424424
options.otherArgs.headers['x-goog-request-params'] =
425425
this._gaxModule.routingHeader.fromParams({
426-
name: request.name || '',
426+
name: request.name ?? '',
427427
});
428428
this.initialize();
429429
return this.innerApiCalls.generateAccessToken(request, options, callback);
@@ -534,7 +534,7 @@ export class IAMCredentialsClient {
534534
options.otherArgs.headers = options.otherArgs.headers || {};
535535
options.otherArgs.headers['x-goog-request-params'] =
536536
this._gaxModule.routingHeader.fromParams({
537-
name: request.name || '',
537+
name: request.name ?? '',
538538
});
539539
this.initialize();
540540
return this.innerApiCalls.generateIdToken(request, options, callback);
@@ -633,7 +633,7 @@ export class IAMCredentialsClient {
633633
options.otherArgs.headers = options.otherArgs.headers || {};
634634
options.otherArgs.headers['x-goog-request-params'] =
635635
this._gaxModule.routingHeader.fromParams({
636-
name: request.name || '',
636+
name: request.name ?? '',
637637
});
638638
this.initialize();
639639
return this.innerApiCalls.signBlob(request, options, callback);
@@ -732,7 +732,7 @@ export class IAMCredentialsClient {
732732
options.otherArgs.headers = options.otherArgs.headers || {};
733733
options.otherArgs.headers['x-goog-request-params'] =
734734
this._gaxModule.routingHeader.fromParams({
735-
name: request.name || '',
735+
name: request.name ?? '',
736736
});
737737
this.initialize();
738738
return this.innerApiCalls.signJwt(request, options, callback);

0 commit comments

Comments
 (0)