Auto merge of #26438 - Eijebong:headers, r=jdm

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:
bors-servo 2020-05-05 18:15:00 -04:00 committed by GitHub
commit 81b92b9c1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) {

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