Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit aa01be8

Browse files
test($http): parsing headers with multiple values
Closes #9473 Closes #10176
1 parent bb4d3b7 commit aa01be8

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)