-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for working with ServerlessFramework #503
Conversation
Authorization was coming in empty because it was checking caps vs lowercase.
@benbrown Can you take a look? How are non-standard cased parameters normally handled in JS |
@benbrown @Stevenic The build is failing with this:
|
This is a reasonable approach to the problem, but I'm not sure why it broke the build. I'll check that out. |
Sounds good. I will check as well in a few hours if it hasn't been resolved
…On Mon, Oct 1, 2018, 3:50 PM Ben Brown ***@***.***> wrote:
This is a reasonable approach to the problem, but I'm not sure why it
broke the build. I'll check that out.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#503 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APcwQg_23UA-0R9uHblEWNN0T-rd6bZZks5ugnIdgaJpZM4XCoGp>
.
|
@wscholar - the tests are failing because, in the absence of either header, your code leaves the variable null, whereas the tests expect at least an empty string. Can you change your implementation to: This should have the same impact. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this:
const authHeader: string = req.headers.authorization || req.headers.Authorization || '';
Pull Request Test Coverage Report for Build 1701
💛 - Coveralls |
Thanks for the contribution, @wscholar |
Authorization was coming in empty because it was checking caps vs lowercase.