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()) .get(HeaderName::from_str(&valid_name).unwrap())
{ {
combined_value = v.as_bytes().to_vec(); combined_value = v.as_bytes().to_vec();
combined_value.push(b','); combined_value.extend(b", ");
} }
combined_value.extend(valid_value.iter().cloned()); combined_value.extend(valid_value.iter().cloned());
match HeaderValue::from_bytes(&combined_value) { match HeaderValue::from_bytes(&combined_value) {

View file

@ -1,14 +0,0 @@
[headers-combine.html]
type: testharness
[Create headers using same name for different values]
expected: FAIL
[Check append methods when called with already used name]
expected: FAIL
[Iterate combined values]
expected: FAIL
[Iterate combined values in sorted order]
expected: FAIL