File tree 2 files changed +2
-2
lines changed
cjs/typescript_gapic/src/$version
esm/typescript_gapic/esm/src/$version
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ export class {{ service.name }}Client {
249
249
}
250
250
{%- endif %}
251
251
{%- if service .apiVersion %}
252
- clientHeader.push({{ service .apiVersion }} );
252
+ clientHeader.push('x-goog-api-version': {{ service .apiVersion }} );
253
253
{%- endif %}
254
254
if (opts.libName && opts.libVersion) {
255
255
clientHeader.push(`${opts.libName}/${opts.libVersion}`);
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ export class {{ service.name }}Client {
247
247
clientHeader.push(`gl-web/${this._gaxModule.version}`);
248
248
}
249
249
{%- if service .apiVersion %}
250
- clientHeader.push({{ service .apiVersion }} );
250
+ clientHeader.push('x-goog-api-version': {{ service .apiVersion }} );
251
251
{%- endif %}
252
252
{%- if api .legacyProtoLoad %}
253
253
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
You can’t perform that action at this time.
0 commit comments