Skip to content

Commit

Permalink
cleaned up append token logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ldetmer committed Sep 16, 2024
1 parent 94d3f45 commit 822ac0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ public class ApiClientHeaderProvider implements HeaderProvider, Serializable {
public static final String API_VERSION_HEADER_KEY = "x-goog-api-version";
private static final String protobufVersionAppendValue =
"--" + PROTOBUF_HEADER_VERSION_KEY + "-" + GaxProperties.getProtobufVersion();
private static String tokensToAppendProfobufVersionTo = "";

private final Map<String, String> headers;

protected ApiClientHeaderProvider(Builder builder) {
ImmutableMap.Builder<String, String> headersBuilder = ImmutableMap.builder();
// tokensToAppendProfobufVersionTo = "(gccl|gapic).*";

if (builder.getApiClientHeaderKey() != null) {
StringBuilder apiClientHeaderValue = new StringBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
package com.google.api.gax.core;

import static com.google.api.gax.core.GaxProperties.getBundleVersion;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import com.google.common.base.Strings;
import java.io.IOException;
Expand Down

0 comments on commit 822ac0c

Please sign in to comment.