Skip to content

Commit 0df4048

Browse files
authored
---
yaml --- r: 8167 b: refs/heads/tswast-patch-1 c: 793943c h: refs/heads/master i: 8165: 5e5008d 8163: 578f7a1 8159: badf622
1 parent 6cad2ce commit 0df4048

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 8e074f3c07dee4efc0c6f204b57b40fd5d531dcb
60+
refs/heads/tswast-patch-1: 793943cbb6c02bc7d8c79e114894ca0b23e417c2
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/google-cloud-core-http/src/main/java/com/google/cloud/http/HttpTransportOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public HttpRequestInitializer getHttpRequestInitializer(
149149
final HttpRequestInitializer delegate =
150150
scopedCredentials != null && scopedCredentials != NoCredentials.getInstance()
151151
? new HttpCredentialsAdapter(scopedCredentials) : null;
152+
final String xGoogHeader = getXGoogApiClientHeader(serviceOptions.getLibraryVersion());
152153
return new HttpRequestInitializer() {
153154
@Override
154155
public void initialize(HttpRequest httpRequest) throws IOException {
@@ -163,8 +164,7 @@ public void initialize(HttpRequest httpRequest) throws IOException {
163164
}
164165

165166
HttpHeaders headers = httpRequest.getHeaders();
166-
headers.set(
167-
"x-goog-api-client", getXGoogApiClientHeader(serviceOptions.getLibraryVersion()));
167+
headers.set("x-goog-api-client", xGoogHeader);
168168
}
169169
};
170170
}

0 commit comments

Comments
 (0)