Skip to content

Commit d99e2e8

Browse files
pkozlowski-opensourcegkalpak
authored andcommitted
test($http): parsing headers with multiple values
Closes angular#9473 Closes angular#10176
1 parent 0f912be commit d99e2e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ng/httpSpec.js

+4
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ describe('$http', function() {
575575
expect(parseHeaders('a:\tbb').a).toBe('bb');
576576
expect(parseHeaders('a: \tbb').a).toBe('bb');
577577
});
578+
579+
it('should parse multiple values for the same header', function() {
580+
expect(parseHeaders('key:value1\nkey:value2').key).toBe('value1, value2');
581+
});
578582
});
579583

580584

0 commit comments

Comments
 (0)