We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aced01 commit a2c1b77Copy full SHA for a2c1b77
tests/unit/interceptors/http.test.ts
@@ -30,6 +30,21 @@ describe('HTTP Interceptors', () => {
30
// Assert
31
expect(request.headers.get('Content-Type')).toBe('text/plain');
32
});
33
+
34
+ it('should perform case insensitive checks on headers', async () => {
35
+ // Arrange
36
+ const request = new Request('https://example.com', {
37
+ headers: { 'content-type': 'text/plain' },
38
+ });
39
40
+ const interceptor = HttpInterceptors.setDefaultHeaders();
41
42
+ // Act
43
+ await interceptor({ request });
44
45
+ // Assert
46
+ expect(request.headers.get('Content-Type')).toBe('text/plain');
47
48
49
50
describe('transformErrors', () => {
0 commit comments