Skip to content

Clean up HTTP version processing#7766

Merged
shinrich merged 4 commits intoapache:masterfrom
shinrich:cleanup-version
May 3, 2021
Merged

Clean up HTTP version processing#7766
shinrich merged 4 commits intoapache:masterfrom
shinrich:cleanup-version

Conversation

@shinrich
Copy link
Copy Markdown
Member

@shinrich shinrich commented Apr 29, 2021

This is an extended version of PR #7706.

@zwoop started reviewing PR #7706 and reasonably asked, why do we have two different structures/enums tracking HTTP versions. This PR gets rid of the HostDBApplicationInfo::HTTPVersion that was used in HostDBInfo. It replaces it with HTTPVersion which is used everywhere else.

Also adjust HTTPVersion to be smaller (2 uint8_t's) and stored as major and minor versions since that is how most cases were using the data. Added some constants for our current HTTP versions to get rid of inline constructors.

Because of the elimination of the HostDBApplicationInfo::HTTPVersion, we don't have to do the conversion function that was in PR #7706. Instead we can just assign the version from one member to another.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants