Fix HTTP/2 response headers parsing #1668
Merged
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The HTTP/2 spec requires header field names to be lowercase. This change makes PoB agnostic about the used HTTP version by changing the pattern to be case-insensitive.
This doesn't affect the official Windows version of PoB (yet) because it bundles a
libcurllibrary that is not compiled with HTTP/2 support. My main motivation behind this fix is meehl/rusty-path-of-building#20.I know third-party runtimes are not officially supported but i still hope to see this merged because i feel like PoB shouldn't make any assumptions about the HTTP version being used. If the bundled
libcurllibrary is ever compiled with HTTP/2 support you'll most likely run into the same problem.