diff options
author | Ed Tanous <ed@tanous.net> | 2024-01-03 00:16:50 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-01-09 20:44:00 +0300 |
commit | 8ece0e457ee994e54c23ee7393fbce831d81a954 (patch) | |
tree | d673c8d7c744c2057a7250e4027e82249480c2fe /include/http_utility.hpp | |
parent | f3cb5df94799e94df37f9e2e6c2fcc473e0cae4a (diff) | |
download | bmcweb-8ece0e457ee994e54c23ee7393fbce831d81a954.tar.xz |
Fix spelling mistakes
These were found with:
codespell -w $(git ls-files | grep "\.[hc]\(pp\)\?$")
At some point in the future, we might want to get this enabled in CI.
Change-Id: Iccb57b2adfd06a2e177e99db2923fe4e8e329118
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include/http_utility.hpp')
-rw-r--r-- | include/http_utility.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/http_utility.hpp b/include/http_utility.hpp index 4f430aeb8e..ae436caf1c 100644 --- a/include/http_utility.hpp +++ b/include/http_utility.hpp @@ -45,8 +45,8 @@ constexpr std::array<ContentTypePair, 5> contentTypes{{ }}; inline ContentType - getPreferedContentType(std::string_view header, - std::span<const ContentType> preferedOrder) + getPreferredContentType(std::string_view header, + std::span<const ContentType> preferedOrder) { size_t lastIndex = 0; while (lastIndex < header.size() + 1) @@ -103,7 +103,7 @@ inline bool isContentTypeAllowed(std::string_view header, ContentType type, bool allowWildcard) { auto types = std::to_array({type}); - ContentType allowed = getPreferedContentType(header, types); + ContentType allowed = getPreferredContentType(header, types); if (allowed == ContentType::ANY) { return allowWildcard; |