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

Improve the version header detection and logging #3680

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Sep 26, 2023

Change

I have seen the header detection fall back exactly one time unexpectedly. It did not fail (no throw in the try/catch block), and I was running Fiddler and saw the header present.

Because it happening to me once could me happening in the wild thousands or millions of times, this change folds the case of the headers to ensure that they are in fact lower case and adds logging to dump the headers to make it easier to diagnose in case it ever happens again.

Validation

Still works, but since I have no idea why it failed the one time, I can't really say it has been resolved. Hopefully that means it was a special case.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner September 26, 2023 22:48
@JohnMcPMS JohnMcPMS merged commit fd3597d into microsoft:master Sep 27, 2023
8 checks passed
@JohnMcPMS JohnMcPMS deleted the header-detection-fix branch September 27, 2023 02:43
JohnMcPMS added a commit to JohnMcPMS/winget-cli that referenced this pull request Sep 27, 2023
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.

2 participants