test($http): parsing headers with multiple values

Closes #9473

Closes #10176
This commit is contained in:
Pawel Kozlowski
2014-11-22 17:43:41 +01:00
parent bb4d3b73a1
commit aa01be8b2c

View File

@@ -575,6 +575,10 @@ describe('$http', function() {
expect(parseHeaders('a:\tbb').a).toBe('bb');
expect(parseHeaders('a: \tbb').a).toBe('bb');
});
it('should parse multiple values for the same header', function() {
expect(parseHeaders('key:value1\nkey:value2').key).toBe('value1, value2');
});
});