mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
test($http): parsing headers with multiple values
Closes #9473 Closes #10176
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user