Skip to content

Commit 2b116ef

Browse files
zhangkun83ejona86
authored andcommitted
Encode binary headers with Base64 on the wire, and requires all binary headers
have "-bin" suffix in their names. Split Metadata.Marshaller into BinaryMarshaller and AsciiMarshaller. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81306135
1 parent 63fc647 commit 2b116ef

File tree

13 files changed

+368
-227
lines changed

13 files changed

+368
-227
lines changed

auth/src/main/java/com/google/net/stubby/auth/OAuth2ChannelInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/** Client interceptor that authenticates all calls with OAuth2. */
1616
public class OAuth2ChannelInterceptor implements ClientInterceptor {
1717
private static final Metadata.Key<String> AUTHORIZATION =
18-
Metadata.Key.of("Authorization", Metadata.STRING_MARSHALLER);
18+
Metadata.Key.of("Authorization", Metadata.ASCII_STRING_MARSHALLER);
1919

2020
private final OAuth2AccessTokenProvider accessTokenProvider;
2121
private final Provider<String> authorizationHeaderProvider

0 commit comments

Comments
 (0)