From b8bd686256b9f37771eb2b08d1d3f9319f1909c5 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Sat, 22 Nov 2014 17:43:41 +0100 Subject: [PATCH] test($http): parsing headers with multiple values Closes #9473 --- test/ng/httpSpec.js | 4 ++++ 1 file changed, 4 insertions(+) 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'); + }); });