diff --git a/3rdParty/fuerte/include/fuerte/detail/vst.h b/3rdParty/fuerte/include/fuerte/detail/vst.h index 3f29e34a80..6ed5c74e9e 100644 --- a/3rdParty/fuerte/include/fuerte/detail/vst.h +++ b/3rdParty/fuerte/include/fuerte/detail/vst.h @@ -142,7 +142,7 @@ RequestHeader requestHeaderFromSlice(velocypack::Slice const& header); /// creates a RequestHeader from a given slice ResponseHeader responseHeaderFromSlice(velocypack::Slice const& header); -// Validates if payload consitsts of valid velocypack slices +// Validates if payload consists of valid velocypack slices std::size_t validateAndCount(uint8_t const* vpHeaderStart, std::size_t len); } // namespace parser diff --git a/3rdParty/fuerte/include/fuerte/message.h b/3rdParty/fuerte/include/fuerte/message.h index 320945e6d0..a3d2c04ec9 100644 --- a/3rdParty/fuerte/include/fuerte/message.h +++ b/3rdParty/fuerte/include/fuerte/message.h @@ -70,8 +70,8 @@ struct MessageHeader { protected: StringMap _meta; /// Header meta data (equivalent to HTTP headers) short _version; - ContentType _contentType; - ContentType _acceptType; + ContentType _contentType = ContentType::Unset; + ContentType _acceptType = ContentType::Unset; }; struct RequestHeader final : public MessageHeader { diff --git a/3rdParty/fuerte/src/vst.cpp b/3rdParty/fuerte/src/vst.cpp index 57dd1e064a..70ae2e3e02 100644 --- a/3rdParty/fuerte/src/vst.cpp +++ b/3rdParty/fuerte/src/vst.cpp @@ -170,8 +170,6 @@ void message::requestHeader(RequestHeader const& header, /// @brief creates a slice containing a VST response-message header. void message::responseHeader(ResponseHeader const& header, VPackBuffer& buffer) { - static std::string const message = " for message not set"; - VPackBuilder builder(buffer); assert(builder.isClosed()); builder.openArray(); @@ -505,7 +503,6 @@ ResponseHeader responseHeaderFromSlice(VPackSlice const& headerSlice) { assert(headerSlice.at(1).getNumber() == static_cast(MessageType::Response)); header.responseCode = headerSlice.at(2).getNumber(); - // header.contentType(ContentType::VPack); // empty meta if (headerSlice.length() >= 4) { VPackSlice meta = headerSlice.at(3); assert(meta.isObject()); @@ -521,9 +518,9 @@ ResponseHeader responseHeaderFromSlice(VPackSlice const& headerSlice) { header.contentType(ContentType::VPack); } return header; -}; +} -// Validates if payload consitsts of valid velocypack slices +// Validates if payload consists of valid velocypack slices std::size_t validateAndCount(uint8_t const* const vpStart, std::size_t length) { // start points to the begin of a velocypack uint8_t const* cursor = vpStart;