mirror of https://github.com/grpc/grpc-node.git
grpc-js: Don't split header values by commas
This commit is contained in:
parent
ed608f897c
commit
4ef8abddf2
|
@ -278,11 +278,7 @@ export class Metadata {
|
|||
result.add(key, value);
|
||||
});
|
||||
} else if (values !== undefined) {
|
||||
if (isCustomMetadata(key)) {
|
||||
values.split(',').forEach((v) => result.add(key, v.trim()));
|
||||
} else {
|
||||
result.add(key, values);
|
||||
}
|
||||
result.add(key, values);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in New Issue