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>
diff --git a/http/complete_response_fields.hpp b/http/complete_response_fields.hpp
index a5b3eec..8323dca 100644
--- a/http/complete_response_fields.hpp
+++ b/http/complete_response_fields.hpp
@@ -32,14 +32,14 @@
using http_helpers::ContentType;
std::array<ContentType, 3> allowed{ContentType::CBOR, ContentType::JSON,
ContentType::HTML};
- ContentType prefered =
- getPreferedContentType(req.getHeaderValue("Accept"), allowed);
+ ContentType preferred =
+ getPreferredContentType(req.getHeaderValue("Accept"), allowed);
- if (prefered == ContentType::HTML)
+ if (preferred == ContentType::HTML)
{
json_html_util::prettyPrintJson(res);
}
- else if (prefered == ContentType::CBOR)
+ else if (preferred == ContentType::CBOR)
{
res.addHeader(boost::beast::http::field::content_type,
"application/cbor");
@@ -49,7 +49,7 @@
}
else
{
- // Technically prefered could also be NoMatch here, but we'd
+ // Technically preferred could also be NoMatch here, but we'd
// like to default to something rather than return 400 for
// backward compatibility.
res.addHeader(boost::beast::http::field::content_type,