@@ -36,11 +36,11 @@ describe('Vary Header Support', () => {
3636 } ) ;
3737
3838 const resp2 = await axios . get ( 'url' , {
39- headers : { authorization : 'Bearer A' , 'accept-language ' : 'en' }
39+ headers : { authorization : 'Bearer A' , 'Accept-Language ' : 'en' }
4040 } ) ;
4141
4242 const resp3 = await axios . get ( 'url' , {
43- headers : { authorization : 'Bearer A' , 'accept-language ' : 'fr' }
43+ headers : { authorization : 'Bearer A' , 'ACCEPT-LANGUAGE ' : 'fr' }
4444 } ) ;
4545
4646 assert . equal ( resp1 . cached , false ) ;
@@ -59,22 +59,22 @@ describe('Vary Header Support', () => {
5959 return { user : Math . random ( ) , call : networkCallCount , timestamp : Date . now ( ) } ;
6060 } ) ;
6161
62- // 9 concurrent requests: 3 variations, 3 requests each
62+ // 9 concurrent requests: 3 variations, 3 requests each (in different casing)
6363 const requests = [
6464 // 3 with Bearer A
6565 axios . get ( 'url' , { headers : { authorization : 'Bearer A' } } ) ,
66- axios . get ( 'url' , { headers : { authorization : 'Bearer A' } } ) ,
66+ axios . get ( 'url' , { headers : { auTHORIZAtion : 'Bearer A' } } ) ,
6767 axios . get ( 'url' , { headers : { authorization : 'Bearer A' } } ) ,
6868
6969 // 3 with Bearer B
70- axios . get ( 'url' , { headers : { authorization : 'Bearer B' } } ) ,
71- axios . get ( 'url' , { headers : { authorization : 'Bearer B' } } ) ,
72- axios . get ( 'url' , { headers : { authorization : 'Bearer B' } } ) ,
70+ axios . get ( 'url' , { headers : { Authorization : 'Bearer B' } } ) ,
71+ axios . get ( 'url' , { headers : { AUTHORIZATION : 'Bearer B' } } ) ,
72+ axios . get ( 'url' , { headers : { auTHOrization : 'Bearer B' } } ) ,
7373
7474 // 3 with Bearer C
75- axios . get ( 'url' , { headers : { authorization : 'Bearer C' } } ) ,
76- axios . get ( 'url' , { headers : { authorization : 'Bearer C' } } ) ,
77- axios . get ( 'url' , { headers : { authorization : 'Bearer C' } } )
75+ axios . get ( 'url' , { headers : { authOrization : 'Bearer C' } } ) ,
76+ axios . get ( 'url' , { headers : { authorIZAtion : 'Bearer C' } } ) ,
77+ axios . get ( 'url' , { headers : { authorizATion : 'Bearer C' } } )
7878 ] ;
7979
8080 const responses = await Promise . all ( requests ) ;
0 commit comments