diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js index 3aca14f62ec9..db1f85f35b86 100644 --- a/test/ng/httpSpec.js +++ b/test/ng/httpSpec.js @@ -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'); + }); });