Skip to content

Commit

Permalink
Merge pull request #102 from cxx24/cxx23
Browse files Browse the repository at this point in the history
CRUD: default to  404 instead of 500
  • Loading branch information
cxx24 committed Jun 25, 2024
2 parents f902a56 + 89293b3 commit 084f09c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CRUD/service/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class connection
request_handler_type& request_handler_;

/// Buffer for incoming data.
std::array<char, 8192> buffer_;
std::array<char, 8192> buffer_{};

/// The incoming request.
request request_;
Expand All @@ -144,7 +144,7 @@ class connection
request_parser request_parser_;

/// The reply to be sent back to the client.
reply reply_;
reply reply_{.status=reply::not_found, .headers={}, .content={}};
};


Expand Down
4 changes: 2 additions & 2 deletions CRUD/service/persistent_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class persistent_connection
request_handler_type& request_handler_;

/// Buffer for incoming data.
std::array<char, 8192> buffer_;
std::array<char, 8192> buffer_{};

/// The incoming request.
request request_;
Expand All @@ -184,7 +184,7 @@ class persistent_connection
request_parser request_parser_;

/// The reply to be sent back to the client.
reply reply_;
reply reply_{.status=reply::not_found, .headers={}, .content={}};

};
} // namespace http::server
Expand Down
2 changes: 1 addition & 1 deletion rtb/messaging/serialization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ namespace boost {
}

template<class Archive, class T>
void serialize(Archive & ar, [[maybe_unused]] openrtb::Regulations<T> & value, [[maybe_unused]] const unsigned int version) {
void serialize(Archive & ar, openrtb::Regulations<T> & value, [[maybe_unused]] const unsigned int version) {
ar & value.coppa;
}

Expand Down

0 comments on commit 084f09c

Please sign in to comment.