Separate values in Headers with ", ", not ","

Tests expect header values to be separated by that so this fixes a few
of them.
This commit is contained in:
Bastien Orivel 2020-05-05 23:45:54 +02:00
parent 2471e9dcd0
commit e18a3ad841
2 changed files with 1 additions and 15 deletions

View file

@ -96,7 +96,7 @@ impl HeadersMethods for Headers {
.get(HeaderName::from_str(&valid_name).unwrap())
{
combined_value = v.as_bytes().to_vec();
combined_value.push(b',');
combined_value.extend(b", ");
}
combined_value.extend(valid_value.iter().cloned());
match HeaderValue::from_bytes(&combined_value) {