Skip to content

Commit

Permalink
fix grpc set metadata multi-value
Browse files Browse the repository at this point in the history
  • Loading branch information
wgy035 committed May 8, 2024
1 parent 32df5ae commit 91ff56b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ enum MetadataSetter implements TextMapSetter<Metadata> {

@Override
public void set(Metadata carrier, String key, String value) {
carrier.removeAll(Metadata.Key.of(key, Metadata.ASCII_STRING_MARSHALLER));
carrier.put(Metadata.Key.of(key, Metadata.ASCII_STRING_MARSHALLER), value);
}
}

0 comments on commit 91ff56b

Please sign in to comment.