Skip to content
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

Check if authorisation header is set before attempting to extract token #981

Merged
merged 2 commits into from
Feb 13, 2021

Conversation

haguro
Copy link
Contributor

@haguro haguro commented Feb 12, 2021

Fixes #962.

Copy link
Contributor

@ekingery ekingery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good to me, although I'm unfamiliar with the surrounding code. @haguro, could you add a test in debug_test.go covering this change? If it's a significant amount of work or would require a refactor, I'm open to continuing with no test, as the changes pretty clearly make the code safer.

@haguro
Copy link
Contributor Author

haguro commented Feb 13, 2021

@ekingery No I agree. I think it's worth having unit tests for DumpRequest (and DumpResponse) especially considering how basic the two "integration" tests (TestVerboseEnabled and TestVerboseDisabled) are. Will try to add some with this PR.

@haguro haguro requested a review from ekingery February 13, 2021 12:12
Copy link
Contributor

@ekingery ekingery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Thanks for adding the tests!

@ekingery ekingery merged commit 0934426 into exercism:main Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cli problems configuring token
2 participants