You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using HttpHeader as controller param seems to be case sensitive but should be case insensitive.
Seems to only be an issue when sending requests via a TestingFacade app.
test('header should not be case sensitive',async()=>{constresponse=awaittestApp.request(HttpRequest.POST('/testcontrollerfunction').header('Authorization','teststring'));assert.strictEqual((awaitresponse.json).data,'teststring');// failsconstresponse2=awaittestApp.request(HttpRequest.POST('/testcontrollerfunction').header('authorization','teststring'));assert.strictEqual((awaitresponse.json).data,'teststring');// OK});