Skip to content

Reintroduce x-goog-api-client for common-grpc#2164

Merged
stephenplusplus merged 3 commits intogoogleapis:masterfrom
jmuk:header
Mar 30, 2017
Merged

Reintroduce x-goog-api-client for common-grpc#2164
stephenplusplus merged 3 commits intogoogleapis:masterfrom
jmuk:header

Conversation

@jmuk
Copy link
Contributor

@jmuk jmuk commented Mar 30, 2017

This introduces this header for non-gapic APIs.
Revise of #2020.

This introduces this header for non-gapic APIs.
Revise of googleapis#2020.
@jmuk jmuk requested a review from stephenplusplus March 30, 2017 18:03
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 30, 2017

this.grpcMetadata.add('x-goog-api-client', [
'gl-node/' + process.versions.node,
'gccl/' + (config.packageJson.version || ''),

This comment was marked as spam.

This comment was marked as spam.

'gccl/' + (config.packageJson.version || ''),
'grpc/' + grpcVersion
].join(' '));
if (config.grpcMetadata) {

This comment was marked as spam.

This comment was marked as spam.

'x-goog-api-client': [
'gl-node/' + process.versions.node,
'gccl/' + CONFIG.packageJson.version,
'grpc/' + grpcVersion].join(' ')

This comment was marked as spam.

This comment was marked as spam.

this.grpcMetadata.add('x-goog-api-client', [
'gl-node/' + process.versions.node,
'gccl/' + (config.packageJson.version || ''),
'grpc/' + grpcVersion

This comment was marked as spam.

This comment was marked as spam.

var extend = require('extend');
var googleProtoFiles = require('google-proto-files');
var grpc = require('grpc');
var grpcVersion = require('grpc/package.json').version;

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Coverage increased (+3.0e-06%) to 99.987% when pulling ed92594 on jmuk:header into f7d4b05 on GoogleCloudPlatform:master.

jmuk added 2 commits March 30, 2017 11:16
- remove grpcVersion from src/service.js
- style fixes
@coveralls
Copy link

Coverage Status

Coverage increased (+2.0e-06%) to 99.987% when pulling c6dda85 on jmuk:header into f7d4b05 on GoogleCloudPlatform:master.

@stephenplusplus stephenplusplus merged commit 4c71ccd into googleapis:master Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants