mirror of https://github.com/grpc/grpc-java.git
Allow commas in Metadata values
This commit is contained in:
parent
e9c9d31704
commit
d2046b637d
|
|
@ -161,6 +161,7 @@ public final class Metadata {
|
||||||
* may not be accurate if Metadata is mutated.
|
* may not be accurate if Metadata is mutated.
|
||||||
*/
|
*/
|
||||||
public <T> Iterable<T> getAll(final Key<T> key) {
|
public <T> Iterable<T> getAll(final Key<T> key) {
|
||||||
|
|
||||||
if (containsKey(key)) {
|
if (containsKey(key)) {
|
||||||
return Iterables.transform(
|
return Iterables.transform(
|
||||||
store.get(key.name()),
|
store.get(key.name()),
|
||||||
|
|
@ -332,7 +333,7 @@ public final class Metadata {
|
||||||
* following characters:
|
* following characters:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>Space: {@code 0x20}, but must not be at the beginning or at the end of the value.</li>
|
* <li>Space: {@code 0x20}, but must not be at the beginning or at the end of the value.</li>
|
||||||
* <li>ASCII visible characters ({@code 0x21-0x7E}), but excluding comma ({@code ",", 0x2C}).
|
* <li>ASCII visible characters ({@code 0x21-0x7E}).
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <p>Note this has to be the subset of valid characters in {@code field-content} from RFC 7230
|
* <p>Note this has to be the subset of valid characters in {@code field-content} from RFC 7230
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue