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

test($http): parsing headers with multiple values #10176

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/ng/httpSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});


Expand Down